From: Mikko Rasa Date: Sat, 5 Apr 2014 14:42:28 +0000 (+0300) Subject: Don't wait for queued accessories if power is off X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=617dacc52b5610a9ea7774cb2ca1144e9011b931;p=r2c2.git Don't wait for queued accessories if power is off --- diff --git a/source/libr2c2/arducontrol.cpp b/source/libr2c2/arducontrol.cpp index 86b3666..98f7433 100644 --- a/source/libr2c2/arducontrol.cpp +++ b/source/libr2c2/arducontrol.cpp @@ -457,7 +457,7 @@ void ArduControl::tick() void ArduControl::flush() { - while(!command_queue.empty() || !accessory_queue.empty()) + while(!command_queue.empty() || (power && !accessory_queue.empty())) tick(); }