1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 20:10:18 +03:00

Core temperature can be negative

This commit is contained in:
jflyper 2018-02-28 08:06:53 +09:00
parent b0ff928afd
commit 122a967c24
3 changed files with 3 additions and 3 deletions

View file

@ -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