From adfadc8008d8660a77e5f8662652ffa16dc3dfba Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Wed, 27 Mar 2019 18:36:39 -0400 Subject: [PATCH] Bug in wifiRes was writing to constant variable on error state --- lib/ble/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ble/index.js b/lib/ble/index.js index 2332fd8..60b1d73 100644 --- a/lib/ble/index.js +++ b/lib/ble/index.js @@ -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) {