File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,19 +84,19 @@ void IRAM_ATTR handleButtonPress() {
8484 }
8585}
8686
87- // Function to switch the boot partition to OTA1
87+ // Function to switch the boot partition to OTA0
8888void setBootPartitionToOTA0 () {
8989 const esp_partition_t *ota0_partition = esp_partition_find_first (ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_APP_OTA_0, NULL );
9090
9191 if (ota0_partition) {
92- // Set OTA1 as new boot partition
92+ // Set OTA0 as new boot partition
9393 esp_ota_set_boot_partition (ota0_partition);
9494 Serial.println (" Boot partition changed to OTA0. Restarting..." );
9595
9696 // Restart to boot from the new partition
9797 esp_restart ();
9898 } else {
99- Serial.println (" OTA1 partition not found!" );
99+ Serial.println (" OTA0 partition not found!" );
100100 }
101101}
102102
You can’t perform that action at this time.
0 commit comments