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:
parent
18ff84aa04
commit
2d74b3d358
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue