Open nebrius opened 9 years ago
@bryan-m-hughes what are the inconsistencies here?
@fivdi it's in writeByte and writeWord. If a register is not specified, we call i2cWrite
under the hood, which calls it's callback with (err, bytesWritten, buffer), but if we do specify a register, we call writeByte
under the hood which only calls back with (err). Same thing with the *Word variants
The callbacks for the async methods are not consistent both between and within raspi-i2c methods, depending on which i2c-bus method was called. These need to be wrapped and normalized