Fix Fix safeboot free size

This commit is contained in:
Theo Arends 2022-05-05 18:00:26 +02:00
parent 9ead30f104
commit 44a7e20a1b
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ uint32_t ESP_getChipId(void) {
} }
uint32_t ESP_getFreeSketchSpace(void) { uint32_t ESP_getFreeSketchSpace(void) {
if (EspSingleOtaPartition()) { if (EspRunningFactoryPartition()) {
return 0xD0000; // SafeBoot (factory) partition size return 0xD0000; // SafeBoot (factory) partition size
} }
return ESP.getFreeSketchSpace(); return ESP.getFreeSketchSpace();