Fix "always yellow" in watch
This commit is contained in:
parent
c66084d3ab
commit
7f32881e10
|
@ -303,9 +303,9 @@ public class WatchUpdaterService extends WearableListenerService implements Goog
|
|||
double highLine = defaultValueHelper.determineHighLine();
|
||||
|
||||
long sgvLevel = 0L;
|
||||
if (lastBG.value > highLine) {
|
||||
if (lastBG.valueToUnits(units) > highLine) {
|
||||
sgvLevel = 1;
|
||||
} else if (lastBG.value < lowLine) {
|
||||
} else if (lastBG.valueToUnits(units) < lowLine) {
|
||||
sgvLevel = -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue