fix a bug that group object with read_on_init eanbled would crash when configuring by ETS

This commit is contained in:
leoujz 2020-06-24 21:03:21 +08:00
parent 9803de2166
commit a82fb82110

View File

@ -70,7 +70,7 @@ void BauSystemB::sendNextGroupTelegram()
else if (flag == ReadRequest)
{
// do not send read_on_init request when configuring, or else would crash. this is judged by last PropertyValueWrite telegram received time
// it works under my test, although it might not be the best way
// it works under my test, although it might not be the best way
if(_lastPropertyValueWriteTime == 0 || millis() - _lastPropertyValueWriteTime > 10000) {
_appLayer.groupValueReadRequest(AckRequested, asap, go.priority(), NetworkLayerParameter);
}