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

Loading…
Cancel
Save