comment out check device method
This commit is contained in:
parent
b2cf7f2367
commit
6aede848b2
1 changed files with 7 additions and 12 deletions
11
index.js
11
index.js
|
|
@ -69,15 +69,11 @@ class MPR121 extends EventEmitter {
|
|||
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
setTimeout(() => {
|
||||
|
||||
this.device = i2c.open(this.bus, (err) => {
|
||||
if(err) return reject(err);
|
||||
resolve();
|
||||
});
|
||||
|
||||
}, 100);
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
|
@ -125,10 +121,9 @@ class MPR121 extends EventEmitter {
|
|||
return this.readByte(MPR121_CONFIG2)
|
||||
.then((c) => {
|
||||
|
||||
return Promise.resolve();
|
||||
|
||||
if(c != 0x24)
|
||||
return Promise.reject(`MPR121 notfound. Check address, bus and wiring. (${c} != 36)`);
|
||||
// TODO figure out why this fails on ras pi
|
||||
// if(c != 0x24)
|
||||
// return Promise.reject(`MPR121 notfound. Check address, bus and wiring. (${c} != 36)`);
|
||||
|
||||
return Promise.resolve();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue