Skip to content

Commit

Permalink
Merge pull request #15 from ELUTE/patch-2
Browse files Browse the repository at this point in the history
Update pebble.js
  • Loading branch information
bewest committed Jun 20, 2014
2 parents 6a5b082 + 035ead6 commit 2ad8185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pebble.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function pebble (req, res) {
if (element) {
console.log(element, index);
var obj = {};
obj.sgv = (element.sgv / 18.01559).toFixed(2);
obj.sgv = (element.sgv / 18.01559).toFixed(1);
obj.bgdelta = (last ? (last.sgv - obj.sgv) : 0);
if ('direction' in element) {
obj.trend = directionToTrend(element.direction);
Expand Down

0 comments on commit 2ad8185

Please sign in to comment.