refactoring meterbus

This commit is contained in:
Wolfgang Hottgenroth 2020-11-24 13:46:51 +01:00
parent 89edf7f7bb
commit 7d816f6ed0
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -659,6 +659,17 @@ static void mbusCommScheduler(void *handle) {
coloredMsg(LOG_YELLOW, false, "mbc mcs scheduled: %s", devices[i].deviceName);
}
}
// FIXME
state = 3;
break;
case 3:
coloredMsg(LOG_YELLOW, false, "mbc mcs waiting for godot");
state = 4;
// no break
case 4:
break;
}
}
@ -667,5 +678,5 @@ void mbusCommInit() {
coloredMsg(LOG_GREEN, true, "mbc mci initializing Meterbus communication");
// FIXME
schAdd(mbusCommScheduler, NULL, 0, 0);
schAdd(mbusCommScheduler, NULL, 0, 1000);
}