Merge pull request #439 from MilosKozak/fix-zerotemp-misinterpretation
Do not misinterpret a fake-extended as 0% temp.
This commit is contained in:
commit
4f53862808
1 changed files with 1 additions and 1 deletions
|
@ -506,7 +506,7 @@ public class DanaRPlugin implements PluginBase, PumpInterface, DanaRInterface, C
|
|||
}
|
||||
if (percent > getPumpDescription().maxTempPercent)
|
||||
percent = getPumpDescription().maxTempPercent;
|
||||
TemporaryBasal runningTB = MainApp.getConfigBuilder().getTempBasalFromHistory(System.currentTimeMillis());
|
||||
TemporaryBasal runningTB = MainApp.getConfigBuilder().getRealTempBasalFromHistory(System.currentTimeMillis());
|
||||
if (runningTB != null && runningTB.percentRate == percent) {
|
||||
result.enacted = false;
|
||||
result.success = true;
|
||||
|
|
Loading…
Reference in a new issue