mirror of
https://github.com/whowechina/chu_pico.git
synced 2024-11-30 21:37:18 +01:00
Enable HID joy if redboard feature received
This commit is contained in:
parent
75f68f8d8e
commit
07531ee954
Binary file not shown.
@ -228,6 +228,11 @@ void tud_hid_set_report_cb(uint8_t itf, uint8_t report_id,
|
|||||||
if (lzfx_decompress(buffer + 1, buffer[0], buf, &olen) == 0) {
|
if (lzfx_decompress(buffer + 1, buffer[0], buf, &olen) == 0) {
|
||||||
rgb_set_brg(0, buf, olen / 3);
|
rgb_set_brg(0, buf, olen / 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!chu_cfg->hid.joy) {
|
||||||
|
chu_cfg->hid.joy = 1;
|
||||||
|
config_changed();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
last_hid_time = time_us_64();
|
last_hid_time = time_us_64();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user