]> git.tdb.fi Git - r2c2.git/commitdiff
Don't wait for queued accessories if power is off
authorMikko Rasa <tdb@tdb.fi>
Sat, 5 Apr 2014 14:42:28 +0000 (17:42 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 5 Apr 2014 14:42:28 +0000 (17:42 +0300)
source/libr2c2/arducontrol.cpp

index 86b3666b2ff13a478ed8a391fe3c2d916b04188d..98f74338285178ecb73a11e63faa005deea56f6e 100644 (file)
@@ -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();
 }