idz: add ffb and led emulation

This commit is contained in:
2024-09-30 23:10:16 +02:00
parent 2251585ef0
commit 259b763a13
26 changed files with 886 additions and 152 deletions

View File

@ -133,6 +133,8 @@ static HRESULT idac_io4_poll(void *ctx, struct io4_state *state)
static HRESULT idac_io4_write_gpio(uint8_t* payload, size_t len)
{
assert(idac_dll.led_set_leds != NULL);
// Just fast fail if there aren't enough bytes in the payload
if (len < 3)
return S_OK;