Push dev work to master #2

Merged
sixteenmillimeter merged 416 commits from dev into master 2018-07-19 15:29:02 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit bcc29424da - Show all commits

View File

@ -91,8 +91,8 @@ class Wifi {
console.log(data)
parsed = parseConfig(data)
console.dir(parsed)
current = parsed.filter(network => {
return (network.ssid + '').toLowerCase() === (_ssid + '').toLowerCase()
current = parsed.find(network => {
return network.ssid === _ssid
})
console.log(current)
if (typeof current !== 'undefined') {
@ -102,7 +102,7 @@ class Wifi {
}
console.log(data)
_entry = null
this._writeConfigCb(null)
setTimeout(this._writeConfigCb, 1)
//fs.writeFile(filePath, data, 'utf8', this._writeConfigCb)
}
/**