refine output value format
This commit is contained in:
parent
25c2638ac4
commit
a9542a3d01
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue