canserial: Request bootloader via bootloader_request()

Use bootloader_request() instead of try_request_canboot().  This
allows the bootloader machanism to work for more bootloaders.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2022-07-25 13:27:22 -04:00
parent 18ff84aa04
commit 2d74b3d358
1 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,6 @@
// This file may be distributed under the terms of the GNU GPLv3 license. // This file may be distributed under the terms of the GNU GPLv3 license.
#include <string.h> // memcpy #include <string.h> // memcpy
#include "board/armcm_reset.h" // try_request_canboot
#include "board/io.h" // readb #include "board/io.h" // readb
#include "board/irq.h" // irq_save #include "board/irq.h" // irq_save
#include "board/misc.h" // console_sendf #include "board/misc.h" // console_sendf
@ -188,7 +187,7 @@ can_process_request_bootloader(struct canbus_msg *msg)
{ {
if (!can_check_uuid(msg)) if (!can_check_uuid(msg))
return; return;
try_request_canboot(); bootloader_request();
} }
// Handle an "admin" command // Handle an "admin" command