Pi4J / pi4j-v2

Pi4J Version 2.0
Apache License 2.0
273 stars 57 forks source link

I2C write register: multi byte register may fail with large data #273

Closed taartspi closed 1 year ago

taartspi commented 1 year ago

One bug fix. In the last review of two byte I2C register read/write, I made a copy paste error effecting writes of large number of data bytes.

Also, added testcases for these new two byte register I2C reads and writes. Open to any suggestions on how I added usage of their interfaces I2cRegisterRead and I2cRegisterWriter

taartspi commented 1 year ago

@eitch Robert, I made those edits, thanks for the help.

eitch commented 1 year ago

Thanks @taartspi, merged your changes