Permalink
Browse files

fix the callback on list. callback was on the wrong function

  • Loading branch information...
1 parent ce51f4d commit ba90601d612dc408f021e7afa2c47a070943fea0 @joeferner joeferner committed Nov 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 serialport.js
View
@@ -211,7 +211,7 @@ function listUnix (callback) {
manufacturer: undefined,
pnpId: file
});
- }, callback);
+ });
// Suspect code per ticket: #104 removed for deeper inspection.
// fs.readdir("/dev/serial/by-path", function(err_path, paths) {
// if (err_path) {
@@ -243,7 +243,7 @@ function listUnix (callback) {
// });
// });
// }, callback);
- });
+ }, callback);
});
}

0 comments on commit ba90601

Please sign in to comment.