display the performed operation
This commit is contained in:
parent
d5ae4cabf2
commit
229285ed4d
|
@ -111,14 +111,18 @@ class QueueThread internal constructor(
|
|||
// Pickup 1st command and set performing variable
|
||||
if (queue.size() > 0) {
|
||||
queue.pickup()
|
||||
if (queue.performing() != null) {
|
||||
aapsLogger.debug(LTag.PUMPQUEUE, "performing " + queue.performing()?.status())
|
||||
val cont = queue.performing()?.let {
|
||||
aapsLogger.debug(LTag.PUMPQUEUE, "performing " + it.status())
|
||||
rxBus.send(EventQueueChanged())
|
||||
queue.performing()?.execute()
|
||||
rxBus.send(EventPumpStatusChanged(it.status()))
|
||||
it.execute()
|
||||
queue.resetPerforming()
|
||||
rxBus.send(EventQueueChanged())
|
||||
lastCommandTime = System.currentTimeMillis()
|
||||
SystemClock.sleep(100)
|
||||
true
|
||||
} ?: false
|
||||
if (cont) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue