1
0
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:
whowechina 2023-09-28 22:39:21 +08:00
parent 75f68f8d8e
commit 07531ee954
2 changed files with 5 additions and 0 deletions

Binary file not shown.

View File

@ -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;