diff --git a/left/src/slave_protocol_handler.c b/left/src/slave_protocol_handler.c index fabb74a..b3d0af6 100644 --- a/left/src/slave_protocol_handler.c +++ b/left/src/slave_protocol_handler.c @@ -42,6 +42,9 @@ void SlaveRxHandler(void) uint8_t commandId = RxMessage.data[0]; switch (commandId) { + case SlaveCommand_JumpToBootloader: + JumpToBootloader(); + break; case SlaveCommand_SetTestLed: TxMessage.length = 0; bool isLedOn = RxMessage.data[1]; @@ -52,9 +55,6 @@ void SlaveRxHandler(void) uint8_t brightnessPercent = RxMessage.data[1]; LedPwm_SetBrightness(brightnessPercent); break; - case SlaveCommand_JumpToBootloader: - JumpToBootloader(); - break; } } diff --git a/shared/slave_protocol.h b/shared/slave_protocol.h index fcf568b..2c0e24e 100644 --- a/shared/slave_protocol.h +++ b/shared/slave_protocol.h @@ -12,9 +12,9 @@ typedef enum { SlaveCommand_RequestProperty, SlaveCommand_RequestKeyStates, + SlaveCommand_JumpToBootloader, SlaveCommand_SetTestLed, SlaveCommand_SetLedPwmBrightness, - SlaveCommand_JumpToBootloader, } slave_command_t; typedef enum {