mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +00:00
parent
7c8b06ce16
commit
7784156376
@ -503,15 +503,17 @@ void CmndClientReset(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CmndClientSend(void) {
|
void CmndClientSend(void) {
|
||||||
if (0 < XdrvMailbox.data_len) {
|
if (TClient.SerialEnabled) {
|
||||||
TasmotaClient_sendCmnd(CMND_CLIENT_SEND, XdrvMailbox.data_len);
|
if (0 < XdrvMailbox.data_len) {
|
||||||
TasmotaClient_Serial->write(char(PARAM_DATA_START));
|
TasmotaClient_sendCmnd(CMND_CLIENT_SEND, XdrvMailbox.data_len);
|
||||||
for (uint8_t idx = 0; idx < XdrvMailbox.data_len; idx++) {
|
TasmotaClient_Serial->write(char(PARAM_DATA_START));
|
||||||
TasmotaClient_Serial->write(XdrvMailbox.data[idx]);
|
for (uint8_t idx = 0; idx < XdrvMailbox.data_len; idx++) {
|
||||||
|
TasmotaClient_Serial->write(XdrvMailbox.data[idx]);
|
||||||
|
}
|
||||||
|
TasmotaClient_Serial->write(char(PARAM_DATA_END));
|
||||||
}
|
}
|
||||||
TasmotaClient_Serial->write(char(PARAM_DATA_END));
|
ResponseCmndDone();
|
||||||
}
|
}
|
||||||
ResponseCmndDone();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TasmotaClient_ProcessIn(void) {
|
void TasmotaClient_ProcessIn(void) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user