add 'use strict' to mpr121 module
This commit is contained in:
parent
02e7a61783
commit
c3d97e5a86
1 changed files with 5 additions and 1 deletions
6
index.js
6
index.js
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
const i2c = require('i2c-bus'),
|
const i2c = require('i2c-bus'),
|
||||||
EventEmitter = require('events');
|
EventEmitter = require('events');
|
||||||
|
|
||||||
|
|
@ -125,7 +127,7 @@ class MPR121 extends EventEmitter {
|
||||||
.then((c) => {
|
.then((c) => {
|
||||||
|
|
||||||
if(c != 0x24)
|
if(c != 0x24)
|
||||||
return Promise.reject(`MPR121 Error - device not found. Check address, bus and wiring. (${c} != 36)`);
|
return Promise.reject(`MPR121 notfound. Check address, bus and wiring. (${c} != 36)`);
|
||||||
|
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
|
|
||||||
|
|
@ -266,3 +268,5 @@ class MPR121 extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exports = module.exports = MPR121;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue