Skip to content

Commit

Permalink
fix mmol panning to show mmol
Browse files Browse the repository at this point in the history
Fixes a bug where panning would show "HIGH".
  • Loading branch information
bewest committed Oct 16, 2014
1 parent 5ed76b6 commit b35f7f7
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 @@ -240,9 +240,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 b35f7f7

Please sign in to comment.