Skip to content

Commit

Permalink
Fixed timeout bug for Precision Xtra
Browse files Browse the repository at this point in the history
  • Loading branch information
gniezen committed Sep 8, 2015
1 parent 1506337 commit cd2a393
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/drivers/abbottFreeStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,9 @@ module.exports = function (config) {
// once we've sent the command, start listening for a response
// but if we don't get one before the end of the timeout, give up
// max timeout is 1000 * 32 bytes / 19200 baud / 10 bits/char == about 16 sec
listenForPacket(18000, commandpacket.parser, function(err, result) {
listenForPacket(3000, commandpacket.parser, function(err, result) {
if (err === 'TIMEOUT') {
callback('TIMEOUT', null);
} else {
callback(err, result);
}
Expand Down

0 comments on commit cd2a393

Please sign in to comment.