Fix H3 temperature reporting. The formula in for V1.0 of the H3 datasheet
seems to be incorrect, so use the same method of conversion as the H3 BSP instead.
This commit is contained in:
parent
448897d366
commit
bd95d8610a
@ -109,9 +109,9 @@ __FBSDID("$FreeBSD$");
|
||||
#define H3_ADC_ACQUIRE_TIME 0x3f
|
||||
#define H3_FILTER 0x6
|
||||
#define H3_INTC 0x191000
|
||||
#define H3_TEMP_BASE 2794000
|
||||
#define H3_TEMP_BASE 1794000
|
||||
#define H3_TEMP_MUL 1000
|
||||
#define H3_TEMP_DIV -14882
|
||||
#define H3_TEMP_DIV -8253
|
||||
#define H3_CLK_RATE 4000000
|
||||
|
||||
#define TEMP_C_TO_K 273
|
||||
|
Loading…
Reference in New Issue
Block a user