From 66f11765a0054b694d9c50d2ddfcc77b7387292a Mon Sep 17 00:00:00 2001 From: Charles Forman Date: Mon, 21 Jan 2019 16:01:13 -0500 Subject: [PATCH] intialize bt --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index be6540e..10b6ed9 100644 --- a/index.js +++ b/index.js @@ -86,6 +86,12 @@ exports.open = function(dev, opt) { } //Internal Variables: gmp.type = gType; if(gStyle) gmp.style = gStyle; if(dev.mode) gmp.mode = dev.mode; + + if (gmp.mode == "bluetooth") { + // needed to initialize data over bt + gmp.getFeatureReport(0x04, 66) + } + gmp.msData = {}; gmp.fData = {}; gmp.map = Object.assign({},mapping[gType]); if(gmp.map.special) { const s = gmp.map.special, s2 = {};