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) {