From f39936bfed5752e4a57d398abae9503f52077e23 Mon Sep 17 00:00:00 2001 From: Niek van der Maas Date: Mon, 7 Jan 2019 22:06:47 +0100 Subject: [PATCH] Fix compile error when TERMINAL_SUPPORT is disabled (#1426) --- code/espurna/ota.ino | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/espurna/ota.ino b/code/espurna/ota.ino index a6dcaeb5..7bef2829 100644 --- a/code/espurna/ota.ino +++ b/code/espurna/ota.ino @@ -28,7 +28,7 @@ void _otaLoop() { // Terminal OTA // ----------------------------------------------------------------------------- -#if TERMINAL_SUPPORT +#if TERMINAL_SUPPORT || OTA_MQTT_SUPPORT #include AsyncClient * _ota_client; @@ -186,6 +186,11 @@ void _otaFrom(String url) { } +#endif // TERMINAL_SUPPORT || OTA_MQTT_SUPPORT + + +#if TERMINAL_SUPPORT + void _otaInitCommands() { settingsRegisterCommand(F("OTA"), [](Embedis* e) {