Closed RavenSystem closed 7 months ago
When bootloader is updated, it copies OTA1 to OTA0 partition if running partition is OTA1, and erases OTA Data partition.
I have come out with a simpler and safer solution. Jason is testing it.
The problem is that p.otadata.active_otadata is wrong with Shelly's bootloader, it will always show partition 0.
p.otadata.active_otadata
When bootloader is updated, it copies OTA1 to OTA0 partition if running partition is OTA1, and erases OTA Data partition.