Bug in wifiRes was writing to constant variable on error state

This commit is contained in:
mmcwilliams 2019-03-27 18:36:39 -04:00
parent 46c497bd54
commit adfadc8008
1 changed files with 2 additions and 2 deletions

View File

@ -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) {