diff options
-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); } |