Fix LEDControl_::set_mode()

Don't set `mode` to itself, but to `mode_`, so that it actually does something.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/75/head
Gergely Nagy 8 years ago
parent 943a2f4449
commit 675fd32f3f

@ -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

Loading…
Cancel
Save