Merge branch 'dev' of https://github.com/MilosKozak/AndroidAPS into dev
This commit is contained in:
commit
8c987c8be9
|
@ -537,11 +537,11 @@ public class LoopPlugin extends PluginBase implements LoopInterface {
|
|||
applySMBRequest(resultAfterConstraints, new Callback() {
|
||||
@Override
|
||||
public void run() {
|
||||
//Callback is only called if a bolus was acutally requested
|
||||
// Callback is only called if a bolus was actually requested
|
||||
if (result.enacted || result.success) {
|
||||
lastRun.setTbrSetByPump(result);
|
||||
lastRun.setLastTBRRequest(lastRun.getLastAPSRun());
|
||||
lastRun.setLastTBREnact(DateUtil.now());
|
||||
lastRun.setSmbSetByPump(result);
|
||||
lastRun.setLastSMBRequest(lastRun.getLastAPSRun());
|
||||
lastRun.setLastSMBEnact(DateUtil.now());
|
||||
} else {
|
||||
new Thread(() -> {
|
||||
SystemClock.sleep(1000);
|
||||
|
|
Loading…
Reference in a new issue