From b07801e11f49647bc13a92ca3dad314a7949a7c8 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Thu, 20 Nov 2025 18:03:06 -0700 Subject: [PATCH] WIP No debug 2 --- switch_pro_driver.cpp | 4 ++-- tusb_config.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/switch_pro_driver.cpp b/switch_pro_driver.cpp index 12b2f74..7ae9475 100644 --- a/switch_pro_driver.cpp +++ b/switch_pro_driver.cpp @@ -546,9 +546,9 @@ void switch_pro_task() { if (is_report_queued) { if ((now - last_report_timer) > SWITCH_PRO_KEEPALIVE_TIMER) { if (tud_hid_ready() && send_report(queued_report_id, report_buffer, 64) == true ) { + is_report_queued = false; + last_report_timer = now; } - is_report_queued = false; - last_report_timer = now; } report_sent = true; } diff --git a/tusb_config.h b/tusb_config.h index aaf39e7..7f291ec 100644 --- a/tusb_config.h +++ b/tusb_config.h @@ -32,7 +32,7 @@ extern "C" { #ifdef CFG_TUSB_DEBUG #undef CFG_TUSB_DEBUG #endif -#define CFG_TUSB_DEBUG 2 +#define CFG_TUSB_DEBUG 0 #define CFG_TUD_HID_EP_BUFSIZE 64