Fix "always yellow" in watch
This commit is contained in:
parent
c66084d3ab
commit
7f32881e10
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