Core temperature can be negative
This commit is contained in:
parent
b0ff928afd
commit
122a967c24
|
@ -3015,7 +3015,7 @@ static void cliStatus(char *cmdline)
|
|||
|
||||
#ifdef USE_ADC_INTERNAL
|
||||
uint16_t vrefintMv = getVrefMv();
|
||||
uint16_t coretemp = getCoreTemperatureCelsius();
|
||||
int16_t coretemp = getCoreTemperatureCelsius();
|
||||
cliPrintf(", Vref=%d.%2dV, Core temp=%ddegC", vrefintMv / 1000, (vrefintMv % 1000) / 10, coretemp);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ uint16_t getVrefMv(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
uint16_t getCoreTemperatureCelsius(void)
|
||||
int16_t getCoreTemperatureCelsius(void)
|
||||
{
|
||||
return coreTemperature;
|
||||
}
|
||||
|
|
|
@ -21,5 +21,5 @@
|
|||
|
||||
void adcInternalInit(void);
|
||||
void adcInternalProcess(timeUs_t currentTimeUs);
|
||||
uint16_t getCoreTemperatureCelsius(void);
|
||||
int16_t getCoreTemperatureCelsius(void);
|
||||
uint16_t getVrefMv(void);
|
||||
|
|
Loading…
Reference in New Issue