Skip to content

Commit

Permalink
Avoid including OTA.h
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Oct 23, 2023
1 parent f711461 commit aa757ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utility/ota/OTA-esp32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#if defined ARDUINO_ARCH_ESP32 && OTA_ENABLED

#include "OTA.h"
#include <Arduino_DebugUtils.h>
#include <Arduino_ESP32_OTA.h>
#include "tls/utility/SHA256.h"
Expand Down Expand Up @@ -71,7 +70,7 @@ int esp32_onOTARequest(char const * ota_url)
/* Perform the reset to reboot */
ota.reset();

return static_cast<int>(OTAError::None);
return static_cast<int>(Arduino_ESP32_OTA::Error::None);
}

String esp32_getOTAImageSHA256()
Expand Down

0 comments on commit aa757ff

Please sign in to comment.