add debug to profile comparation
This commit is contained in:
parent
46be73d187
commit
463a913cd1
1 changed files with 3 additions and 1 deletions
|
@ -252,8 +252,10 @@ public class DanaRPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
||||||
for (int h = 0; h < basalValues; h++) {
|
for (int h = 0; h < basalValues; h++) {
|
||||||
Double pumpValue = pump.pumpProfiles[pump.activeProfile][h];
|
Double pumpValue = pump.pumpProfiles[pump.activeProfile][h];
|
||||||
Double profileValue = profile.getBasal(h * basalIncrement);
|
Double profileValue = profile.getBasal(h * basalIncrement);
|
||||||
if (!pumpValue.equals(profileValue))
|
if (!pumpValue.equals(profileValue)) {
|
||||||
|
log.debug("Diff found. Hour: " + h + " Pump: " + pumpValue + " Profile: " + profileValue);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue