From e066c388c8aa18ce87bc8ecc5899717191ed25b2 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 2 Dec 2020 14:31:57 -0800 Subject: [PATCH] Slightly reduce the number of color change cycles. By doing so, fit the for loop into an 8 bit int, saving us 6 bytes compiled --- src/kaleidoscope/plugin/HardwareTestMode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kaleidoscope/plugin/HardwareTestMode.cpp b/src/kaleidoscope/plugin/HardwareTestMode.cpp index 9dabc4a6..343dca20 100644 --- a/src/kaleidoscope/plugin/HardwareTestMode.cpp +++ b/src/kaleidoscope/plugin/HardwareTestMode.cpp @@ -66,7 +66,7 @@ void HardwareTestMode::testLeds(void) { // rainbow for 10 seconds ::LEDRainbowEffect.update_delay(5); - for (auto i = 0; i < 300; i++) { + for (uint8_t i = 0; i < 254; i++) { ::LEDControl.update(); ::LEDControl.syncLeds(); }