Combo plugin: provide BaseBasalRate in JSON (for NS). Fixes #1256.

This commit is contained in:
Johannes Mockenhaupt 2022-02-23 22:39:15 +01:00
parent fe99e83446
commit ff910f1289
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -1309,6 +1309,7 @@ public class ComboPlugin extends PumpPluginBase implements Pump, Constraints {
if (ps.activeAlert != null && ps.activeAlert.errorCode != null) {
extendedJson.put("ErrorCode", ps.activeAlert.errorCode);
}
extendedJson.put("BaseBasalRate", getBaseBasalRate());
pumpJson.put("extended", extendedJson);
JSONObject batteryJson = new JSONObject();