Fix null error; Fix promise
This commit is contained in:
@ -26,7 +26,8 @@ function parseOutput(str, callback) {
|
||||
'ssid' : lines[i].substring(0, 32).trim(),
|
||||
'mac' : '', // There is no more mac on a mac
|
||||
'channel': parseInt(elements[1].trim(), 10),
|
||||
'rssi' : parseInt(elements[0].trim(), 10)
|
||||
'rssi' : parseInt(elements[0].trim(), 10),
|
||||
'encrypted': false,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user