Merge pull request #6815 from andrethomas/patch-1

TasmotaSlave: Bugfix
This commit is contained in:
Theo Arends 2019-11-02 14:16:45 +01:00 committed by GitHub
commit d985088bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

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