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) {
|
function onWifiRead (offset, callback) {
|
||||||
const result = bleno.Characteristic.RESULT_SUCCESS
|
let result = bleno.Characteristic.RESULT_SUCCESS
|
||||||
const wifiRes = {}
|
let wifiRes = {}
|
||||||
let data
|
let data
|
||||||
wifi.list((err, list) => {
|
wifi.list((err, list) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
Loading…
Reference in New Issue