From e7aa03c8abe362e391eeb7ed25ad1e4d0a49dac3 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 27 Feb 2023 12:14:05 +0900 Subject: [PATCH] lufa: Fix debug messages --- tmk_core/protocol/lufa/lufa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index a314e5c7..d71ab98d 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -442,7 +442,7 @@ void EVENT_USB_Device_ControlRequest(void) Endpoint_ClearOUT(); Endpoint_ClearStatusStage(); #ifdef TMK_LUFA_DEBUG - xprintf("[L%d]", USB_ControlRequest.wIndex); + xprintf("[L%d %02X]", USB_ControlRequest.wIndex, keyboard_led_stats); #endif break; #endif @@ -490,7 +490,7 @@ void EVENT_USB_Device_ControlRequest(void) keyboard_protocol = (USB_ControlRequest.wValue & 0xFF); clear_keyboard(); #ifdef TMK_LUFA_DEBUG - print("[P]"); + xprintf("[P%d %04X]", USB_ControlRequest.wIndex, USB_ControlRequest.wValue); #endif } #endif @@ -515,7 +515,7 @@ void EVENT_USB_Device_ControlRequest(void) keyboard_idle = ((USB_ControlRequest.wValue & 0xFF00) >> 8); #ifdef TMK_LUFA_DEBUG - xprintf("[I%d]%d", USB_ControlRequest.wIndex, (USB_ControlRequest.wValue & 0xFF00) >> 8); + xprintf("[I%d %04X]", USB_ControlRequest.wIndex, USB_ControlRequest.wValue); #endif #endif }