From f3c243d35473af8a77d57be5999a61381e268d34 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 22 Jan 2016 19:31:47 -0800 Subject: [PATCH] tighten up a line --- led_control.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/led_control.cpp b/led_control.cpp index c1722cad..69bea362 100644 --- a/led_control.cpp +++ b/led_control.cpp @@ -102,8 +102,7 @@ void set_all_leds_to(cRGB color) { void next_led_mode() { - led_mode++; - if (led_mode >= LED_MODES) { + if (led_mode++ >= LED_MODES) { led_mode = 0; } }