|
|
@ -21,7 +21,7 @@
|
|
|
|
namespace KaleidoscopePlugins {
|
|
|
|
namespace KaleidoscopePlugins {
|
|
|
|
uint16_t EEPROMKeymapProgrammer::updatePosition;
|
|
|
|
uint16_t EEPROMKeymapProgrammer::updatePosition;
|
|
|
|
EEPROMKeymapProgrammer::state_t EEPROMKeymapProgrammer::state;
|
|
|
|
EEPROMKeymapProgrammer::state_t EEPROMKeymapProgrammer::state;
|
|
|
|
EEPROMKeymapProgrammer::mode_t EEPROMKeymapProgrammer::programmerMode;
|
|
|
|
EEPROMKeymapProgrammer::mode_t EEPROMKeymapProgrammer::mode;
|
|
|
|
Key EEPROMKeymapProgrammer::newKey;
|
|
|
|
Key EEPROMKeymapProgrammer::newKey;
|
|
|
|
|
|
|
|
|
|
|
|
EEPROMKeymapProgrammer::EEPROMKeymapProgrammer (void) {
|
|
|
|
EEPROMKeymapProgrammer::EEPROMKeymapProgrammer (void) {
|
|
|
@ -32,11 +32,6 @@ namespace KaleidoscopePlugins {
|
|
|
|
event_handler_hook_use (eventHandlerHook);
|
|
|
|
event_handler_hook_use (eventHandlerHook);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
|
|
|
EEPROMKeymapProgrammer::mode (mode_t programmerMode_) {
|
|
|
|
|
|
|
|
programmerMode = programmerMode_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|
EEPROMKeymapProgrammer::nextState (void) {
|
|
|
|
EEPROMKeymapProgrammer::nextState (void) {
|
|
|
|
switch (state) {
|
|
|
|
switch (state) {
|
|
|
@ -44,7 +39,7 @@ namespace KaleidoscopePlugins {
|
|
|
|
state = WAIT_FOR_KEY;
|
|
|
|
state = WAIT_FOR_KEY;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case WAIT_FOR_KEY:
|
|
|
|
case WAIT_FOR_KEY:
|
|
|
|
if (programmerMode == CODE)
|
|
|
|
if (mode == CODE)
|
|
|
|
state = WAIT_FOR_CODE;
|
|
|
|
state = WAIT_FOR_CODE;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
state = WAIT_FOR_SOURCE_KEY;
|
|
|
|
state = WAIT_FOR_SOURCE_KEY;
|
|
|
|