From 675fd32f3fd8e6ec0d179f702c177699f3b4ba80 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 28 Dec 2016 13:13:21 +0100 Subject: [PATCH] Fix LEDControl_::set_mode() Don't set `mode` to itself, but to `mode_`, so that it actually does something. Signed-off-by: Gergely Nagy --- src/LEDControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LEDControl.cpp b/src/LEDControl.cpp index cc844838..475a1fce 100644 --- a/src/LEDControl.cpp +++ b/src/LEDControl.cpp @@ -59,7 +59,7 @@ LEDControl_::update (void) { void LEDControl_::set_mode (uint8_t mode_) { if (mode_ < LED_MAX_MODES) - mode = mode; + mode = mode_; } uint8_t