From 510215ca14f709bbe1ea5de56243c31d88cf2451 Mon Sep 17 00:00:00 2001 From: Douglas Reis Date: Mon, 18 May 2026 13:26:35 +0100 Subject: [PATCH] [app] Fix bootstrap command The commit 61f3d476 intruduced bug where the reset command is sent while the last write command is still being processed. The fix is to wait_not_busy before the reset command. Signed-off-by: Douglas Reis --- app/commands.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/app/commands.hh b/app/commands.hh index 85f9b55..0c4d320 100644 --- a/app/commands.hh +++ b/app/commands.hh @@ -272,6 +272,7 @@ struct LoadFile : public Commands { data = data.subspan(std::min(data.size(), std::size_t{flash::PageSize})); progress_bar.update(buffer.size() - data.size()); } + this->flash.wait_not_busy(); this->flash.write_enable(false); if (bootstrap) {