diff --git a/docs/BoostMoveHub.html b/docs/BoostMoveHub.html index c121cd1..527fa51 100644 --- a/docs/BoostMoveHub.html +++ b/docs/BoostMoveHub.html @@ -5718,7 +5718,7 @@ Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html index ea74ee1..6560333 100644 --- a/docs/DuploTrainBase.html +++ b/docs/DuploTrainBase.html @@ -4321,7 +4321,7 @@ Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/Hub.html b/docs/Hub.html index a422a8a..71039b1 100644 --- a/docs/Hub.html +++ b/docs/Hub.html @@ -2586,7 +2586,7 @@ Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html index 23340e3..3ec2d34 100644 --- a/docs/LPF2Hub.html +++ b/docs/LPF2Hub.html @@ -4572,7 +4572,7 @@ Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/PUPHub.html b/docs/PUPHub.html index 8cb801e..b188603 100644 --- a/docs/PUPHub.html +++ b/docs/PUPHub.html @@ -5547,7 +5547,7 @@ Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/PUPRemote.html b/docs/PUPRemote.html index 92e89ac..892baa9 100644 --- a/docs/PUPRemote.html +++ b/docs/PUPRemote.html @@ -3542,7 +3542,7 @@ Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/PoweredUP.html b/docs/PoweredUP.html index c422cdd..d5a3e3f 100644 --- a/docs/PoweredUP.html +++ b/docs/PoweredUP.html @@ -1018,7 +1018,7 @@ Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html index b053c10..1379462 100644 --- a/docs/WeDo2SmartHub.html +++ b/docs/WeDo2SmartHub.html @@ -5286,7 +5286,7 @@ Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/boostmovehub.js.html b/docs/boostmovehub.js.html index 4982bbc..297afc0 100644 --- a/docs/boostmovehub.js.html +++ b/docs/boostmovehub.js.html @@ -353,7 +353,7 @@ exports.BoostMoveHub = BoostMoveHub; Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/classes.list.html b/docs/classes.list.html index d8d05a6..d6c2e6a 100644 --- a/docs/classes.list.html +++ b/docs/classes.list.html @@ -6681,7 +6681,7 @@ Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/consts.js.html b/docs/consts.js.html index 9fd3d05..19f511c 100644 --- a/docs/consts.js.html +++ b/docs/consts.js.html @@ -300,7 +300,7 @@ var BLECharacteristic; Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/duplotrainbase.js.html b/docs/duplotrainbase.js.html index a46cb96..9c983f2 100644 --- a/docs/duplotrainbase.js.html +++ b/docs/duplotrainbase.js.html @@ -165,7 +165,7 @@ class DuploTrainBase extends lpf2hub_1.LPF2Hub { */ setLEDColor(color) { return new Promise((resolve, reject) => { - if (color === false) { + if (typeof color === "boolean") { color = 0; } const data = Buffer.from([0x81, 0x11, 0x11, 0x51, 0x00, color]); @@ -300,7 +300,7 @@ exports.DuploTrainBase = DuploTrainBase; Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/global.html b/docs/global.html index 8bca4cf..850a56b 100644 --- a/docs/global.html +++ b/docs/global.html @@ -3272,7 +3272,7 @@ Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/hub.js.html b/docs/hub.js.html index 6e9f3d5..ae9ec0e 100644 --- a/docs/hub.js.html +++ b/docs/hub.js.html @@ -458,7 +458,7 @@ exports.Hub = Hub; Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/index.html b/docs/index.html index 8761190..a5b0f93 100644 --- a/docs/index.html +++ b/docs/index.html @@ -308,7 +308,7 @@ console.log("Scanning for Hubs...");

More examples are Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/lpf2hub.js.html b/docs/lpf2hub.js.html index b0ab20b..3b2a589 100644 --- a/docs/lpf2hub.js.html +++ b/docs/lpf2hub.js.html @@ -171,7 +171,7 @@ class LPF2Hub extends hub_1.Hub { return new Promise((resolve, reject) => { let data = Buffer.from([0x41, 0x32, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00]); this._writeMessage(Consts.BLECharacteristic.LPF2_ALL, data); - if (color === false) { + if (typeof color === "boolean") { color = 0; } data = Buffer.from([0x81, 0x32, 0x11, 0x51, 0x00, color]); @@ -549,7 +549,7 @@ exports.LPF2Hub = LPF2Hub; Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/poweredup-node.js.html b/docs/poweredup-node.js.html index 0ce05a7..5e3a10f 100644 --- a/docs/poweredup-node.js.html +++ b/docs/poweredup-node.js.html @@ -269,7 +269,7 @@ exports.PoweredUP = PoweredUP; Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/puphub.js.html b/docs/puphub.js.html index 739a8d2..171e4aa 100644 --- a/docs/puphub.js.html +++ b/docs/puphub.js.html @@ -363,7 +363,7 @@ exports.PUPHub = PUPHub; Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/pupremote.js.html b/docs/pupremote.js.html index 12f0497..7a7f19b 100644 --- a/docs/pupremote.js.html +++ b/docs/pupremote.js.html @@ -166,7 +166,7 @@ class PUPRemote extends lpf2hub_1.LPF2Hub { return new Promise((resolve, reject) => { let data = Buffer.from([0x41, 0x34, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00]); this._writeMessage(Consts.BLECharacteristic.LPF2_ALL, data); - if (color === false) { + if (typeof color === "boolean") { color = 0; } data = Buffer.from([0x81, 0x34, 0x11, 0x51, 0x00, color]); @@ -238,7 +238,7 @@ exports.PUPRemote = PUPRemote; Documentation generated by JSDoc 3.5.5 - on Thu Apr 25th 2019 + on Fri Jul 19th 2019 using the DocStrap template. diff --git a/docs/quicksearch.html b/docs/quicksearch.html index 08f6424..ec1d517 100644 --- a/docs/quicksearch.html +++ b/docs/quicksearch.html @@ -7,7 +7,7 @@