refine output value format

This commit is contained in:
Yunhorn 2023-08-24 13:19:30 +08:00
parent 25c2638ac4
commit a9542a3d01
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ static void setTempScale(void) {
centerTemp = (tempValues[383 - 16] + tempValues[383 - 15] + tempValues[384 + 15] + tempValues[384 + 16]) / 4; centerTemp = (tempValues[383 - 16] + tempValues[383 - 15] + tempValues[384 + 15] + tempValues[384 + 16]) / 4;
memset(tempbuf,0x0,sizeof(tempbuf)); memset(tempbuf,0x0,sizeof(tempbuf));
sprintf(tempbuf,(char *)"AVG Temp=%2.2f CenterTemp=%2.2f normalWaterTemp=%2.2f CalibratedWaterTemp=%2.2f\r\n", (float)averageTemp, (float)centerTemp, (float)normalWaterTemp, (float)calibrationWaterTemp); sprintf(tempbuf,(char *)"Temp AVG=%2.2fC Center=%2.2fC normalWater=%2.2fC CalibratedWater=%2.2fC\r\n", (float)averageTemp, (float)centerTemp, (float)normalWaterTemp, (float)calibrationWaterTemp);
APP_LOG(TS_OFF,VLEVEL_L,"%s\r\n",tempbuf); APP_LOG(TS_OFF,VLEVEL_L,"%s\r\n",tempbuf);
if (maxTemp > normalPeopleTemp) if (maxTemp > normalPeopleTemp)