Skip to content

Commit

Permalink
Remove 'suspending keyboard' log line
Browse files Browse the repository at this point in the history
...at this point the USB driver is already suspended so the message will
only be printed after resuming the operation, which is kind of
pointless.
  • Loading branch information
KarlK90 committed Aug 2, 2023
1 parent 37b3194 commit 9abba9d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion tmk_core/protocol/chibios/chibios.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ void protocol_pre_task(void) {

#if !defined(NO_USB_STARTUP_CHECK)
if (USB_DRIVER.state == USB_SUSPENDED) {
dprintln("suspending keyboard");
while (USB_DRIVER.state == USB_SUSPENDED) {
suspend_power_down();
if ((USB_DRIVER.status & USB_GETSTATUS_REMOTE_WAKEUP_ENABLED) && suspend_wakeup_condition()) {
Expand Down
1 change: 0 additions & 1 deletion tmk_core/protocol/lufa/lufa.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,6 @@ void protocol_post_init(void) {
void protocol_pre_task(void) {
#if !defined(NO_USB_STARTUP_CHECK)
if (USB_DeviceState == DEVICE_STATE_Suspended) {
dprintln("suspending keyboard");
while (USB_DeviceState == DEVICE_STATE_Suspended) {
suspend_power_down();
if (USB_Device_RemoteWakeupEnabled && suspend_wakeup_condition()) {
Expand Down

0 comments on commit 9abba9d

Please sign in to comment.