From ba90601d612dc408f021e7afa2c47a070943fea0 Mon Sep 17 00:00:00 2001 From: Joe Ferner Date: Wed, 14 Nov 2012 10:11:28 -0500 Subject: [PATCH] fix the callback on list. callback was on the wrong function --- serialport.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serialport.js b/serialport.js index 23b392d..8a6abb4 100644 --- a/serialport.js +++ b/serialport.js @@ -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); }); }