Skip to content

Commit aa757ff

Browse files
committed
Avoid including OTA.h
1 parent f711461 commit aa757ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utility/ota/OTA-esp32.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
#if defined ARDUINO_ARCH_ESP32 && OTA_ENABLED
2525

26-
#include "OTA.h"
2726
#include <Arduino_DebugUtils.h>
2827
#include <Arduino_ESP32_OTA.h>
2928
#include "tls/utility/SHA256.h"
@@ -71,7 +70,7 @@ int esp32_onOTARequest(char const * ota_url)
7170
/* Perform the reset to reboot */
7271
ota.reset();
7372

74-
return static_cast<int>(OTAError::None);
73+
return static_cast<int>(Arduino_ESP32_OTA::Error::None);
7574
}
7675

7776
String esp32_getOTAImageSHA256()

0 commit comments

Comments
 (0)