Combo plugin: provide BaseBasalRate in JSON (for NS). Fixes #1256.
This commit is contained in:
parent
fe99e83446
commit
ff910f1289
|
@ -1309,6 +1309,7 @@ public class ComboPlugin extends PumpPluginBase implements Pump, Constraints {
|
||||||
if (ps.activeAlert != null && ps.activeAlert.errorCode != null) {
|
if (ps.activeAlert != null && ps.activeAlert.errorCode != null) {
|
||||||
extendedJson.put("ErrorCode", ps.activeAlert.errorCode);
|
extendedJson.put("ErrorCode", ps.activeAlert.errorCode);
|
||||||
}
|
}
|
||||||
|
extendedJson.put("BaseBasalRate", getBaseBasalRate());
|
||||||
pumpJson.put("extended", extendedJson);
|
pumpJson.put("extended", extendedJson);
|
||||||
|
|
||||||
JSONObject batteryJson = new JSONObject();
|
JSONObject batteryJson = new JSONObject();
|
||||||
|
|
Loading…
Reference in a new issue