TasmotaSlave: Bugfix

This commit is contained in:
Andre Thomas 2019-11-02 14:45:45 +02:00 committed by GitHub
parent 57e62b1e68
commit f9cb2b14a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -580,10 +580,13 @@ bool Xdrv31(uint8_t function)
switch (function) {
case FUNC_EVERY_100_MSECOND:
if ((TSlave.type) && (TSlaveSettings.features.func_every_100_msecond)) {
if (TSlave.type) {
if (TasmotaSlave_Serial->available()) {
TasmotaSlave_ProcessIn();
}
if (TSlaveSettings.features.func_every_100_msecond) {
TasmotaSlave_sendCmnd(CMND_FUNC_EVERY_100_MSECOND, 0);
}
}
break;
case FUNC_EVERY_SECOND: