commit e6e7030ba6f7802f5362d43ea9d15a2d181dbb44 parent fb59198f70ba9b110ba916b013977d04afba094c Author: Daniel Barlow <dan@telent.net> Date: Mon, 26 Jan 2026 00:25:05 +0000 fix ota_write_chnk bug somehow hadn't spotted we were not writing the start of the data, oops Diffstat:
| M | ecu-esp32/src/ota.rs | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ecu-esp32/src/ota.rs b/ecu-esp32/src/ota.rs @@ -133,7 +133,8 @@ async fn write_ota(ota : &mut Ota<FlashStorage<'_>>, signed = signed && next_block_hash == actual_hash; if signed { - if let Err(_) = ota.ota_write_chunk(&buf[ED25519_SIGNATURE_BYTES..buf_offset]) { + if let Err(e) = ota.ota_write_chunk(&buf[SHA256_BYTES..buf_offset]) { + warn!("error writing chunk {:?}", e); break; } } else {