From a82fb82110dcb3cfd924457602953287a6228db8 Mon Sep 17 00:00:00 2001 From: leoujz Date: Wed, 24 Jun 2020 21:03:21 +0800 Subject: [PATCH] fix a bug that group object with read_on_init eanbled would crash when configuring by ETS --- src/knx/bau_systemB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/knx/bau_systemB.cpp b/src/knx/bau_systemB.cpp index 0bc66be..de35def 100644 --- a/src/knx/bau_systemB.cpp +++ b/src/knx/bau_systemB.cpp @@ -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); }