Array output must be let, not const, to filter before sending to device.
This commit is contained in:
parent
89199a5095
commit
9896bf1ad5
|
@ -34,7 +34,7 @@ class Wifi {
|
|||
return callback(err)
|
||||
}
|
||||
const lines = stdout.split('\n')
|
||||
const output = []
|
||||
let output = []
|
||||
let line
|
||||
for (let l of lines) {
|
||||
line = l.replace('ESSID:', '').trim()
|
||||
|
|
Loading…
Reference in New Issue