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) {