first use of libmbus

This commit is contained in:
Wolfgang Hottgenroth 2020-11-03 15:10:28 +01:00
parent 98b6e37737
commit f3986379d4
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -169,6 +169,7 @@ void triggerMBusRequest(void *handle) {
void scheduleMBusRequest(void *handle) {
for (uint8_t i = 0; i < numOfDevices; i++) {
devices[i].delay -= 1;
if (devices[i].delay <= 0) {
devices[i].delay = devices[i].period;
devices[i].waiting = true;