Make the left half call NVIC_SystemReset() upon receiving SlaveCommand_JumpToBootloader instead of jumping to the ROM address of the bootloader. This way the bootloader timeouts. Remove bootloader.c because it only contained JumpToBootloader() which is now unused.

This commit is contained in:
László Monda
2017-10-17 00:58:23 +02:00
parent 37c90cc4a7
commit 3230b94973
2 changed files with 1 additions and 13 deletions

View File

@@ -43,7 +43,7 @@ void SlaveRxHandler(void)
uint8_t commandId = RxMessage.data[0];
switch (commandId) {
case SlaveCommand_JumpToBootloader:
JumpToBootloader();
NVIC_SystemReset();
break;
case SlaveCommand_SetTestLed:
TxMessage.length = 0;