fix(ota): Correctly select the partition to write to

There was an off-by-one error selecting the new partition, meaning the OTA
update would write to the second partition but the boot would be set to the same
one we're currently in.

I believe this should fix jpirnay/crosspoint-reader#112
This commit is contained in:
Joel Goguen
2026-04-28 21:26:52 -04:00
parent 93f5bdb492
commit d148f7290d
2 changed files with 35 additions and 8 deletions
@@ -164,6 +164,10 @@ void OtaUpdateActivity::render(RenderLock&&) {
}
renderer.displayBuffer();
if (state == FINISHED) {
state = SHUTTING_DOWN;
}
}
void OtaUpdateActivity::loop() {