mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
Fix ESP32 TasmotaClient detection
Fix ESP32 TasmotaClient detection (#9218)
This commit is contained in:
parent
1ae9620f45
commit
d49997fa01
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user