Skip to content
Snippets Groups Projects
Commit cb358ff0 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

Fix s5851a driver

parent 15c753b2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment