Array output must be let, not const, to filter before sending to device.

This commit is contained in:
mmcwilliams 2017-12-31 22:27:02 -05:00
parent 89199a5095
commit 9896bf1ad5
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class Wifi {
return callback(err) return callback(err)
} }
const lines = stdout.split('\n') const lines = stdout.split('\n')
const output = [] let output = []
let line let line
for (let l of lines) { for (let l of lines) {
line = l.replace('ESSID:', '').trim() line = l.replace('ESSID:', '').trim()