summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/s5851a.cc2
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);
}