TS: send Ok response on Reset/Reboot commands to make TS happy (#285)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
This commit is contained in:
rusefillc 2023-11-15 02:36:22 -06:00 committed by GitHub
parent 9cd5c23d7a
commit 9e2cea57ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -211,16 +211,25 @@ static void handleIoTestCommand(TsChannelBase* tsChannel, ts_response_format_e m
#if 0
/* DFU */
case 0xba:
/* Send ok to make TS happy, wait until sent */
sendOkResponse(tsChannel, TS_CRC);
chThdSleepMilliseconds(100);
jump_to_bootloader();
break;
#endif
case 0xbb:
/* Send ok to make TS happy, wait until sent */
sendOkResponse(tsChannel, TS_CRC);
chThdSleepMilliseconds(100);
rebootNow();
break;
#if USE_OPENBLT
case 0xbc:
/* Send ok to make TS happy, wait until sent */
sendOkResponse(tsChannel, TS_CRC);
chThdSleepMilliseconds(100);
/* Jump to OpenBLT if present */
rebootToOpenblt();
break;