Skip to content

Commit 15ac3c7

Browse files
committed
fix(board): change OTA1 to OTA0 in comments and logs
1 parent 43644b1 commit 15ac3c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

variants/sensebox_eye/APOTA.bin

0 Bytes
Binary file not shown.

variants/sensebox_eye/APOTA.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
8888
void 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

0 commit comments

Comments
 (0)