Found 5 other functions taking a
bootloader_state_t
argument:
Load partition table. Parse partition table, get useful data such as location of OTA data partition, factory app partition, and test app partition.
Return the index of the selected boot partition. This is the preferred boot partition, as determined by the partition table & any OTA sequence number found in OTA data. This partition will only be booted if it contains a valid app image, otherwise load_boot_image() will search for a valid partition using this selection as the starting point.