Skip to content

Commit

Permalink
fix trend arrow when in mmol
Browse files Browse the repository at this point in the history
  • Loading branch information
Rytiggy committed Apr 14, 2018
1 parent 07f2853 commit a77dd7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Glance/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ function processWeatherData(data) {
// Display the data received from the companion
function processOneBg(data) {
console.log("bg is: " + JSON.stringify(data));
setArrowDirection(data.delta)
if(data.nextPull) {
if(data.units_hint === 'mmol') {
data.sgv = mmol( data.sgv )
Expand All @@ -204,7 +205,6 @@ function processOneBg(data) {

document.getElementById("bg").text = data.sgv
document.getElementById("delta").text = data.delta + ' ' + data.units_hint
setArrowDirection(data.delta)
totalSeconds = 0;
setStatusImage('checked.png')
clearTimeout(timeOut);
Expand Down

0 comments on commit a77dd7d

Please sign in to comment.