Merge pull request #2747 from Philoul/Fix_Color_Watch_mmol
Fix "always yellow" in watch even if within range (mmol unit)
This commit is contained in:
commit
63bf758636
1 changed files with 2 additions and 2 deletions
|
@ -303,9 +303,9 @@ public class WatchUpdaterService extends WearableListenerService implements Goog
|
||||||
double highLine = defaultValueHelper.determineHighLine();
|
double highLine = defaultValueHelper.determineHighLine();
|
||||||
|
|
||||||
long sgvLevel = 0L;
|
long sgvLevel = 0L;
|
||||||
if (lastBG.value > highLine) {
|
if (lastBG.valueToUnits(units) > highLine) {
|
||||||
sgvLevel = 1;
|
sgvLevel = 1;
|
||||||
} else if (lastBG.value < lowLine) {
|
} else if (lastBG.valueToUnits(units) < lowLine) {
|
||||||
sgvLevel = -1;
|
sgvLevel = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue