Skip to content

Commit

Permalink
convert sgv to string
Browse files Browse the repository at this point in the history
On my new pebble with the installed app, the SGV value does not show
up unless it is a string type in the json.
  • Loading branch information
bewest committed Sep 11, 2014
1 parent c29a27e commit c8cccae
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 @@ -49,7 +49,7 @@ function pebble (req, res) {
}
if (element) {
var obj = {};
obj.sgv = scaleBg(element.sgv);
obj.sgv = scaleBg(element.sgv).toString( );
obj.bgdelta = (next ? (scaleBg(element.sgv) - scaleBg(next.sgv) ) : 0);
if (useMetricBg) {
obj.bgdelta = obj.bgdelta.toFixed(1);
Expand Down

0 comments on commit c8cccae

Please sign in to comment.