From 43776c068d020c2e3c92045f29e52a9d48badbf2 Mon Sep 17 00:00:00 2001 From: awalol Date: Sat, 9 May 2026 21:16:24 +0800 Subject: [PATCH] fix: SetStateData update --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];