Skip to content

Commit 03b8850

Browse files
committed
Fix typo
1 parent 17d1bea commit 03b8850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firmware/twipwm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ uint16_t read_temp1(uint16_t *temperature)
150150
uint16_t temp[10] = {0};
151151

152152
memcpy(temp, temperature + 1, 9 * sizeof(uint16_t));
153-
temp[9] = (twi_read_2byte(LM32_TWI_REG_TEMP0) >> 4) / 16;
153+
temp[9] = (twi_read_2byte(LM32_TWI_REG_TEMP1) >> 4) / 16;
154154
memcpy(temperature, temp, 10 * sizeof(uint16_t));
155155
for(i = 0; i < 10; i++)
156156
{

0 commit comments

Comments
 (0)