suppress the possibility to stop the bootloader from any state
@@ -160,11 +160,6 @@ void LuosBootloader_Task(void)
break;
case BOOTLOADER_BIN_HEADER_STATE:
- // if STOP_CMD, restart the node
- if(bootloader_cmd == BOOTLOADER_STOP)
- {
- LuosBootloader_SetState(BOOTLOADER_STOP_STATE);
- }
if(bootloader_cmd == BOOTLOADER_BIN_HEADER)
{
@@ -177,12 +172,6 @@ void LuosBootloader_Task(void)
case BOOTLOADER_BIN_CHUNK_STATE:
- // if STOP_CMD, restart the node
- if(bootloader_cmd == BOOTLOADER_STOP)
- {
- LuosBootloader_SetState(BOOTLOADER_STOP_STATE);
- }
-
if(bootloader_cmd == BOOTLOADER_BIN_CHUNK)
{
// handle binary data
