Verified Commit fab5de2a authored by Peter Müller's avatar Peter Müller
Browse files


parent 48097888
Pipeline #342 failed with stage
in 14 seconds
"name": "ina226",
"version": "1.0.0",
"version": "1.0.1",
"description": "Node.js module to read values from the INA226 bi-directional current and power monitor.",
"main": "dist/ina226.js",
"typings": "dist/ina226.d.ts",
......@@ -126,7 +126,7 @@ export class INA226 {
buf[1] = value & 0xff;
return new Promise<number>((resolve:()=>void, reject:(err:Error)=>void)=>{
this._i2cBus.writeI2cBlock(this._address, register, 2, buf, (err:any, bytesWritten:number, buffer:Buffer)=>{
this._i2cBus.writeI2cBlock(this._address, register, 2, buf, (err:any, _bytesWritten:number, _buffer:Buffer)=>{
......@@ -146,7 +146,7 @@ export class INA226 {
let buf = Buffer.alloc(2);
return new Promise<number>((resolve:(bytesWritten:number)=>void, reject:(err:Error)=>void)=>{
this._i2cBus.readI2cBlock(this._address, register, 2, buf, (err:any, bytesRead:number, buffer:Buffer)=>{
this._i2cBus.readI2cBlock(this._address, register, 2, buf, (err:any, _bytesRead:number, buffer:Buffer)=>{
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment