Fix data sent to WearOS by properly reacalculating them into current app unit

This commit is contained in:
Dominik Dzienia 2020-06-17 15:10:25 +02:00
parent 3735af87e9
commit 6b7420d0b7

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;