Merge pull request #1368 from jotomo/dev

Combo plugin: provide BaseBasalRate in JSON (for NS). Fixes #1256.
This commit is contained in:
Milos Kozak 2022-02-24 20:28:29 +01:00 committed by GitHub
commit 2050881d5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();