From a84087221f57fe4d60d2835ad4dea4d56514cc19 Mon Sep 17 00:00:00 2001 From: Bryce Jacobs Date: Sun, 20 Sep 2015 19:24:44 -0500 Subject: [PATCH] linux work --- lib/hci-socket/gatt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hci-socket/gatt.js b/lib/hci-socket/gatt.js index 8d5187b2..51d809f4 100644 --- a/lib/hci-socket/gatt.js +++ b/lib/hci-socket/gatt.js @@ -74,7 +74,7 @@ util.inherits(Gatt, events.EventEmitter); Gatt.prototype.addService = function AddGATTService(service, indicate){ var handles = this._handles; - indicate = indicate || true; + indicate = indicate === undefined ? true : indicate; var serviceHandles = []; serviceHandles.push({