Ribbit-Network / ribbit-network-frog-software

The software for the Ribbit Network Frog Sensor
https://www.ribbitnetwork.org/
MIT License
9 stars 8 forks source link

utils.ota: Mark partition as valid after first boot #34

Closed damz closed 1 year ago

damz commented 1 year ago

Why?

The OTA upgrade process uses an A/B upgrade method. After rebooting into the new firmware, we need to mark the new partition as valid by calling esp32.Partition.mark_app_valid_cancel_rollback(). Unfortunately, this was missed after a couple of refactorings of the OTA code.

What?