Push dev work to master #2
|
@ -91,8 +91,8 @@ class Wifi {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
parsed = parseConfig(data)
|
parsed = parseConfig(data)
|
||||||
console.dir(parsed)
|
console.dir(parsed)
|
||||||
current = parsed.filter(network => {
|
current = parsed.find(network => {
|
||||||
return (network.ssid + '').toLowerCase() === (_ssid + '').toLowerCase()
|
return network.ssid === _ssid
|
||||||
})
|
})
|
||||||
console.log(current)
|
console.log(current)
|
||||||
if (typeof current !== 'undefined') {
|
if (typeof current !== 'undefined') {
|
||||||
|
@ -102,7 +102,7 @@ class Wifi {
|
||||||
}
|
}
|
||||||
console.log(data)
|
console.log(data)
|
||||||
_entry = null
|
_entry = null
|
||||||
this._writeConfigCb(null)
|
setTimeout(this._writeConfigCb, 1)
|
||||||
//fs.writeFile(filePath, data, 'utf8', this._writeConfigCb)
|
//fs.writeFile(filePath, data, 'utf8', this._writeConfigCb)
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue