Commit cb358ff0 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

Fix s5851a driver

parent 15c753b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}