reduce debug spam and prevent non finsihed post to trigger browser retry after reboot

This commit is contained in:
Empire 2025-03-05 21:22:28 +01:00
parent f4c3c5e584
commit c89340f5f6

View File

@ -272,7 +272,6 @@ fn ota(
loop {
let read = request.read(&mut buffer)?;
total_read += read;
println!("received {read} bytes ota {total_read}");
let to_write = &buffer[0..read];
let iter = (total_read/1024)%8;
@ -285,11 +284,11 @@ fn ota(
}
ota.write(to_write)?;
println!("wrote {read} bytes ota {total_read}");
if read == 0 {
break;
}
}
println!("wrote bytes ota {total_read}");
println!("finish ota");
let partition = ota.raw_partition();
println!("finalizing and changing boot partition to {partition:?}");
@ -299,7 +298,7 @@ fn ota(
board.set_restart_to_conf(true);
drop(board);
finalizer.set_as_boot_partition()?;
finalizer.restart();
return anyhow::Ok(None);
}
fn flash_bq(filename: &str, dryrun: bool) -> anyhow::Result<()> {