mirror of
https://github.com/esphome/esphome.git
synced 2026-09-23 13:08:41 +00:00
Small changes
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
#include <spi_flash_mmap.h>
|
||||
|
||||
#ifdef USE_OTA_PARTITIONS
|
||||
#include "esphome/components/watchdog/watchdog.h"
|
||||
#include <esp_image_format.h>
|
||||
#include <nvs_flash.h>
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -300,7 +300,7 @@ def perform_ota(
|
||||
raise OTAError(f"Unsupported OTA type: 0x{ota_type:02X}")
|
||||
|
||||
if (
|
||||
ota_type == OTA_TYPE_UPDATE_PARTITION_TABLE
|
||||
ota_type != OTA_TYPE_UPDATE_APP
|
||||
and not features & SERVER_FEATURE_SUPPORTS_PARTITION_ACCESS
|
||||
):
|
||||
raise OTAError("Device only supports app updates")
|
||||
|
||||
Reference in New Issue
Block a user