Bug in wifiRes was writing to constant variable on error state
This commit is contained in:
parent
46c497bd54
commit
adfadc8008
|
@ -88,8 +88,8 @@ function onWifiWrite (data, offset, withoutResponse, callback) {
|
|||
}
|
||||
|
||||
function onWifiRead (offset, callback) {
|
||||
const result = bleno.Characteristic.RESULT_SUCCESS
|
||||
const wifiRes = {}
|
||||
let result = bleno.Characteristic.RESULT_SUCCESS
|
||||
let wifiRes = {}
|
||||
let data
|
||||
wifi.list((err, list) => {
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in New Issue