diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index 72876ecf2..dc50e68e1 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -2781,9 +2781,10 @@ void HandleUploadLoop(void) } else #endif // USE_RF_FLASH #ifdef USE_TASMOTA_CLIENT - if ((WEMOS == my_module_type) && (upload.buf[0] == ':')) { // Check if this is a ARDUINO CLIENT hex file + if (TasmotaClient_Available() && (upload.buf[0] == ':')) { // Check if this is a ARDUINO CLIENT hex file Update.end(); // End esp8266 update session Web.upload_file_type = UPL_TASMOTACLIENT; + Web.upload_error = TasmotaClient_UpdateInit(); // 0 if (Web.upload_error != 0) { return; } } else diff --git a/tasmota/xdrv_31_tasmota_client.ino b/tasmota/xdrv_31_tasmota_client.ino index 86121475c..89402b408 100644 --- a/tasmota/xdrv_31_tasmota_client.ino +++ b/tasmota/xdrv_31_tasmota_client.ino @@ -458,6 +458,10 @@ void TasmotaClient_Init(void) { } } +bool TasmotaClient_Available(void) { + return TClient.SerialEnabled; +} + void TasmotaClient_Show(void) { if ((TClient.type) && (TClientSettings.features.func_json_append)) { char buffer[100];