diff --git a/src/main.cpp b/src/main.cpp index 1c233d9..30c4103 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -158,8 +158,8 @@ void tud_hid_set_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t rep if (report_id == 0) { switch (buffer[0]) { case 0x02: { + set_state_data(buffer + 1, bufsize - 1); if (spk_active) { - set_state_data(buffer + 1, bufsize - 1); break; } uint8_t outputData[78];