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);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -667,5 +678,5 @@ void mbusCommInit() {
|
|||||||
coloredMsg(LOG_GREEN, true, "mbc mci initializing Meterbus communication");
|
coloredMsg(LOG_GREEN, true, "mbc mci initializing Meterbus communication");
|
||||||
|
|
||||||
// FIXME
|
// FIXME
|
||||||
schAdd(mbusCommScheduler, NULL, 0, 0);
|
schAdd(mbusCommScheduler, NULL, 0, 1000);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user