Skip to content

Commit

Permalink
Merge pull request #161 from tidepool-org/gniezen/elcapitan-fix
Browse files Browse the repository at this point in the history
Bypassing the detect function for Dexcom to fix serial port issue on El Capitan
  • Loading branch information
jebeck committed Oct 2, 2015
2 parents 603bde2 + 2a03447 commit d43adfc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/drivers/dexcomDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ module.exports = function (config) {
for (var i = 0; i < pagedata.length; ++i) {
var page = pagedata[i].parsed_payload;
for (var j = 0; j < page.data.length; ++j) {
var reading = _.pick(page.data[j], 'displaySeconds', 'displayDate', 'internalTime',
var reading = _.pick(page.data[j], 'displaySeconds', 'displayDate', 'internalTime',
'systemSeconds', 'meterValue');
reading.pagenum = page.header.pagenum;
readings.push(reading);
Expand Down Expand Up @@ -857,9 +857,11 @@ module.exports = function (config) {


return {
// using the default detect for this driver
// detect: function(cb) {
// },
//bypassing the detect function for now
detect: function (obj, cb) {
debug('Dexcom Detect!');
cb(null, obj);
},

// this function starts the chain, so it has to create but not accept
// the result (data) object; it's then passed down the rest of the chain
Expand Down Expand Up @@ -936,7 +938,7 @@ module.exports = function (config) {
data.user_setting_data = result;
progress(100);
cb(err, data);
});
});
}
});
} else {
Expand Down

0 comments on commit d43adfc

Please sign in to comment.