diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-09-02 16:21:19 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-09-02 16:21:19 +0200 |
commit | cb358ff0cb081c5bea86653fce9167bd4b58dd55 (patch) | |
tree | 8aaf9615981c33cce515f5f05fdc242826095930 /src/driver | |
parent | 15c753b2aa1729a8a793ea2f1078dfe84e23d2e5 (diff) |
Fix s5851a driver
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/s5851a.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/s5851a.cc b/src/driver/s5851a.cc index fecb219..4cda5fe 100644 --- a/src/driver/s5851a.cc +++ b/src/driver/s5851a.cc @@ -15,7 +15,7 @@ float S5851A::getTemp() txbuf[0] = 0; rxbuf[0] = 0; rxbuf[1] = 0; - i2c.xmit(address, 1, txbuf, 2, rxbuf); + i2c.xmit(address, 0, txbuf, 2, rxbuf); return rxbuf[0] + (rxbuf[1] / 256.0); } |