EventHandlerResult needs to be namespaced to work here

pull/389/head
Jesse Vincent 6 years ago
parent 3b3054d216
commit e6604d7dbc

@ -20,14 +20,13 @@
#include <Kaleidoscope-LED-Palette-Theme.h>
#include <Kaleidoscope-EEPROM-Settings.h>
#include <Kaleidoscope-FocusSerial.h>
namespace example {
class TestLEDMode : public kaleidoscope::LEDMode {
public:
TestLEDMode() {}
EventHandlerResult onFocusEvent(const char *command);
kaleidoscope::EventHandlerResult onFocusEvent(const char *command);
protected:
void setup() final;
@ -49,7 +48,7 @@ TestLEDMode::update(void) {
LEDPaletteTheme.updateHandler(map_base_, 0);
}
EventHandlerResult
kaleidoscope::EventHandlerResult
TestLEDMode::onFocusEvent(const char *command) {
return LEDPaletteTheme.themeFocusEvent(command, PSTR("testLedMode.map"), map_base_, 1);
}

Loading…
Cancel
Save