Add Device::Tick for periodic work

This commit is contained in:
Corentin Wallez
2017-06-14 13:33:45 -04:00
committed by Corentin Wallez
parent b947993e1a
commit dbb5729e64
13 changed files with 32 additions and 3 deletions

View File

@@ -205,6 +205,8 @@ namespace wire {
}
const uint8_t* HandleCommands(const uint8_t* commands, size_t size) override {
procs.deviceTick(knownDevice.Get(1)->handle);
while (size > sizeof(WireCmd)) {
WireCmd cmdId = *reinterpret_cast<const WireCmd*>(commands);