Skip to content

Commit

Permalink
Define NO_OTA_NETWORK to disable all network-related functionality (#…
Browse files Browse the repository at this point in the history
…191)

Define NO_OTA_NETWORK to disable all network-related functionality
  • Loading branch information
vshymanskyy authored Mar 16, 2023
1 parent ee82be9 commit 28a22f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ArduinoOTA.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#define _ARDUINOOTA_H_

#include "WiFiOTA.h"

#ifdef __AVR__
#if FLASHEND >= 0xFFFF
#include "InternalStorageAVR.h"
Expand Down Expand Up @@ -109,7 +110,9 @@ class ArduinoOTAMdnsClass : public ArduinoOTAClass<NetServer, NetClient> {

};

#if defined(ethernet_h_) || defined(ethernet_h) // Ethernet library
#if defined(NO_OTA_NETWORK)
// Disable network libraries
#elif defined(ethernet_h_) || defined(ethernet_h) // Ethernet library
#ifdef NO_OTA_PORT
ArduinoOTAClass <EthernetServer, EthernetClient> ArduinoOTA;
#else
Expand Down

0 comments on commit 28a22f0

Please sign in to comment.