Skip to content

Commit

Permalink
intialize bt
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Forman committed Jan 21, 2019
1 parent ef0542e commit 66f1176
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit 66f1176

Please sign in to comment.