fix i2c read + fix ds3231 temp + fix ssd1306 send

This commit is contained in:
Zaltora 2017-01-30 10:10:52 +01:00
parent f135752523
commit c5b480995d
3 changed files with 3 additions and 2 deletions

View file

@ -216,7 +216,7 @@ bool ds3231_getRawTemp(int16_t *temp)
uint8_t data[2];
data[0] = DS3231_ADDR_TEMP;
if (!ds3231_send(DS3231_ADDR_TEMP,data, 2))
if (!ds3231_recv(DS3231_ADDR_TEMP,data, 2))
{
*temp = (int16_t)(int8_t)data[0] << 2 | data[1] >> 6;
return true;