Merge pull request #2728 from dlvoy/fix-wearos-sgv-mmol

[2.6.7] Send correct SGV history data to WearOS when mmol/L is used
This commit is contained in:
Milos Kozak 2020-06-17 15:23:20 +02:00 committed by GitHub
commit eabb75e20e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -323,7 +323,7 @@ public class WatchUpdaterService extends WearableListenerService implements Goog
dataMap.putString("avgDelta", deltastring(glucoseStatus.avgdelta, glucoseStatus.avgdelta * Constants.MGDL_TO_MMOLL, units));
}
dataMap.putLong("sgvLevel", sgvLevel);
dataMap.putDouble("sgvDouble", lastBG.value);
dataMap.putDouble("sgvDouble", lastBG.valueToUnits(units));
dataMap.putDouble("high", highLine);
dataMap.putDouble("low", lowLine);
return dataMap;