Do register the LED mode in onSetup

Without registering it there, the mode will not register, and thus, will not
function either.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/389/head
Gergely Nagy 7 years ago
parent 4934c4e2a2
commit 8fffb2622d

@ -30,6 +30,7 @@ bool FingerPainter::edit_mode_;
EventHandlerResult FingerPainter::onSetup() { EventHandlerResult FingerPainter::onSetup() {
color_base_ = ::LEDPaletteTheme.reserveThemes(1); color_base_ = ::LEDPaletteTheme.reserveThemes(1);
::LEDControl.mode_add(this);
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }

Loading…
Cancel
Save