Browse Source

Fix compile error when TERMINAL_SUPPORT is disabled (#1426)

sensors
Niek van der Maas 5 years ago
committed by Max Prokhorov
parent
commit
f39936bfed
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      code/espurna/ota.ino

+ 6
- 1
code/espurna/ota.ino View File

@ -28,7 +28,7 @@ void _otaLoop() {
// Terminal OTA // Terminal OTA
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
#if TERMINAL_SUPPORT
#if TERMINAL_SUPPORT || OTA_MQTT_SUPPORT
#include <ESPAsyncTCP.h> #include <ESPAsyncTCP.h>
AsyncClient * _ota_client; AsyncClient * _ota_client;
@ -186,6 +186,11 @@ void _otaFrom(String url) {
} }
#endif // TERMINAL_SUPPORT || OTA_MQTT_SUPPORT
#if TERMINAL_SUPPORT
void _otaInitCommands() { void _otaInitCommands() {
settingsRegisterCommand(F("OTA"), [](Embedis* e) { settingsRegisterCommand(F("OTA"), [](Embedis* e) {


Loading…
Cancel
Save