Skip to content

Commit

Permalink
attempt to prevent pebble to only read SGV values
Browse files Browse the repository at this point in the history
Try to avoid reporting null for pebble by only considering SGV
records.

Many thanks to @ELUTE for raising flags on this.
  • Loading branch information
bewest committed Oct 16, 2014
1 parent def69f9 commit 5ed76b6
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 @@ -80,7 +80,7 @@ function pebble (req, res) {
console.error("req.devicestatus.tail", err);
}

req.entries.list({count: 2}, get_latest);
req.entries.list({count: 2, find: { "sgv": { $exists: true }}}, get_latest);
});
}
function configure (entries, devicestatus) {
Expand Down

0 comments on commit 5ed76b6

Please sign in to comment.