The Fri3D Camp badge only uses and updates OTA_0 and OTA_1, for MicroPython.
Yet higher ones might be present for use by additional apps, such as the retro-go emulator.
Therefore, these should be ignored when get_next_update() determines which partition should receive the next update.
Example:
from esp32 import Partition
Partition(Partition.RUNNING) # if this shows ota_1 then this:
Partition(Partition.RUNNING).get_next_update() # will return ota_0 instead of ota_2
This minimal patch has a debug printf() that is disabled by default to avoid changing the output of get_next_update().
The Fri3D Camp badge only uses and updates OTA_0 and OTA_1, for MicroPython.
Yet higher ones might be present for use by additional apps, such as the retro-go emulator.
Therefore, these should be ignored when get_next_update() determines which partition should receive the next update.
Example:
This minimal patch has a debug printf() that is disabled by default to avoid changing the output of get_next_update().