Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion bootloaders/eboot/eboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,14 @@ int copy_raw(const uint32_t src_addr,
void main()
{
int res = 9;
bool clear_cmd = false;
struct eboot_command cmd;

print_version(0);

if (eboot_command_read(&cmd) == 0) {
// valid command was passed via RTC_MEM
eboot_command_clear();
clear_cmd = true;
ets_putc('@');
} else {
// no valid command found
Expand All @@ -155,6 +156,10 @@ void main()
}
}

if (clear_cmd) {
eboot_command_clear();
}

if (cmd.action == ACTION_LOAD_APP) {
ets_putc('l'); ets_putc('d'); ets_putc('\n');
res = load_app_from_flash_raw(cmd.args[0]);
Expand Down