WIP No debug 2
This commit is contained in:
parent
a6ad93d184
commit
b07801e11f
2 changed files with 3 additions and 3 deletions
|
|
@ -546,9 +546,9 @@ void switch_pro_task() {
|
||||||
if (is_report_queued) {
|
if (is_report_queued) {
|
||||||
if ((now - last_report_timer) > SWITCH_PRO_KEEPALIVE_TIMER) {
|
if ((now - last_report_timer) > SWITCH_PRO_KEEPALIVE_TIMER) {
|
||||||
if (tud_hid_ready() && send_report(queued_report_id, report_buffer, 64) == true ) {
|
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;
|
report_sent = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ extern "C" {
|
||||||
#ifdef CFG_TUSB_DEBUG
|
#ifdef CFG_TUSB_DEBUG
|
||||||
#undef CFG_TUSB_DEBUG
|
#undef CFG_TUSB_DEBUG
|
||||||
#endif
|
#endif
|
||||||
#define CFG_TUSB_DEBUG 2
|
#define CFG_TUSB_DEBUG 0
|
||||||
|
|
||||||
#define CFG_TUD_HID_EP_BUFSIZE 64
|
#define CFG_TUD_HID_EP_BUFSIZE 64
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue