refactoring meterbus
This commit is contained in:
parent
89edf7f7bb
commit
7d816f6ed0
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user