Updater: Store update file name in safety memory before executing updater. Currently name is hardcoded.
This commit is contained in:
@@ -59,7 +59,7 @@ void __attribute__((noreturn)) start_updater_ram_code(void)
|
||||
while(1);
|
||||
}
|
||||
|
||||
void __attribute__((noreturn)) start_updater(void)
|
||||
void __attribute__((noreturn)) updater_update_from_file(const char *filename)
|
||||
{
|
||||
struct safety_memory_boot_status status;
|
||||
|
||||
@@ -67,6 +67,8 @@ void __attribute__((noreturn)) start_updater(void)
|
||||
status.reboot_to_bootloader = 0xFFFFFFFFUL;
|
||||
safety_memory_set_boot_status(&status);
|
||||
|
||||
safety_memory_set_update_filename(filename);
|
||||
|
||||
NVIC_SystemReset();
|
||||
while (1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user