We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17d1bea commit 03b8850Copy full SHA for 03b8850
firmware/twipwm.c
@@ -150,7 +150,7 @@ uint16_t read_temp1(uint16_t *temperature)
150
uint16_t temp[10] = {0};
151
152
memcpy(temp, temperature + 1, 9 * sizeof(uint16_t));
153
- temp[9] = (twi_read_2byte(LM32_TWI_REG_TEMP0) >> 4) / 16;
+ temp[9] = (twi_read_2byte(LM32_TWI_REG_TEMP1) >> 4) / 16;
154
memcpy(temperature, temp, 10 * sizeof(uint16_t));
155
for(i = 0; i < 10; i++)
156
{
0 commit comments