Skip to content

Commit

Permalink
Merge pull request nightscout#200 from nightscout/wip/fix-null-pebble
Browse files Browse the repository at this point in the history
attempt to prevent pebble to only read SGV values
  • Loading branch information
jasoncalabrese committed Oct 21, 2014
2 parents 6bc2367 + b35f7f7 commit 9b5ef3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@
var focusPoint = nowData[nowData.length - 1];

//in this case the SGV is scaled
if (focusPoint.sgv < scaleBg(40))
if (focusPoint.y < 40)
$('.container .currentBG').text('LOW');
else if (focusPoint.sgv > scaleBg(400))
else if (focusPoint.y > 400)
$('.container .currentBG').text('HIGH');
else
$('.container .currentBG').text(focusPoint.sgv);
Expand Down

0 comments on commit 9b5ef3c

Please sign in to comment.