From 950843ca2cba368e2ef0d8aa129582cef037e487 Mon Sep 17 00:00:00 2001 From: Eric Tang Date: Sun, 1 Jul 2018 17:16:41 -0700 Subject: [PATCH] Use return instead of break --- right/src/usb_report_updater.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index 64aa489..a923c7a 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -420,7 +420,7 @@ void UpdateUsbReports(void) for (uint8_t keyId = 0; keyId < MAX_KEY_COUNT_PER_MODULE; keyId++) { if (KeyStates[slotId][keyId].current) { WakeUpHost(true); - break; + return; } } }