You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (ota_config->subtype<ESP_PARTITION_SUBTYPE_APP_OTA_MIN|| (ota_config->subtype>ESP_PARTITION_SUBTYPE_APP_OTA_MAX&&ota_config->subtype!=ESP_PARTITION_SUBTYPE_ANY)) {
206
218
ESP_LOGE(TAG, "Invalid partition type");
207
219
returnESP_ERR_INVALID_ARG;
208
220
}
221
+
#else
222
+
if (ota_config->subtype!=ESP_PARTITION_SUBTYPE_APP_FACTORY) {
223
+
ESP_LOGE(TAG, "Invalid partition type, only support factory partition");
224
+
returnESP_ERR_INVALID_ARG;
225
+
}
226
+
#endif
209
227
if (ota_config->if_restart) {
210
228
ESP_LOGW(TAG, "Enable restart, SoC will restart after update complete");
0 commit comments