display the performed operation

This commit is contained in:
Andrei Vereha 2021-11-11 17:41:19 +01:00
parent d5ae4cabf2
commit 229285ed4d

View file

@ -111,14 +111,18 @@ class QueueThread internal constructor(
// Pickup 1st command and set performing variable // Pickup 1st command and set performing variable
if (queue.size() > 0) { if (queue.size() > 0) {
queue.pickup() queue.pickup()
if (queue.performing() != null) { val cont = queue.performing()?.let {
aapsLogger.debug(LTag.PUMPQUEUE, "performing " + queue.performing()?.status()) aapsLogger.debug(LTag.PUMPQUEUE, "performing " + it.status())
rxBus.send(EventQueueChanged()) rxBus.send(EventQueueChanged())
queue.performing()?.execute() rxBus.send(EventPumpStatusChanged(it.status()))
it.execute()
queue.resetPerforming() queue.resetPerforming()
rxBus.send(EventQueueChanged()) rxBus.send(EventQueueChanged())
lastCommandTime = System.currentTimeMillis() lastCommandTime = System.currentTimeMillis()
SystemClock.sleep(100) SystemClock.sleep(100)
true
} ?: false
if (cont) {
continue continue
} }
} }