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() {
84
84
}
85
85
}
86
86
87
- // Function to switch the boot partition to OTA1
87
+ // Function to switch the boot partition to OTA0
88
88
void setBootPartitionToOTA0 () {
89
89
const esp_partition_t *ota0_partition = esp_partition_find_first (ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_APP_OTA_0, NULL );
90
90
91
91
if (ota0_partition) {
92
- // Set OTA1 as new boot partition
92
+ // Set OTA0 as new boot partition
93
93
esp_ota_set_boot_partition (ota0_partition);
94
94
Serial.println (" Boot partition changed to OTA0. Restarting..." );
95
95
96
96
// Restart to boot from the new partition
97
97
esp_restart ();
98
98
} else {
99
- Serial.println (" OTA1 partition not found!" );
99
+ Serial.println (" OTA0 partition not found!" );
100
100
}
101
101
}
102
102
You can’t perform that action at this time.
0 commit comments