refine waterSpillLevel show logic

This commit is contained in:
Yunhorn 2023-08-24 11:45:23 +08:00
parent 51a7e03717
commit d9bd3566fb
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ void mlx90640_display_process(void)
// BSP_LCD_DisplayOff();
}
if (waterSpillSpotCount != lastWaterSpillSpotCount) {
if ((waterSpillSpotCount != lastWaterSpillSpotCount)&&(waterSpillSpotCount != 0)) {
APP_LOG(TS_OFF, VLEVEL_L, "Water Spill Spot Detected Count = %2d Level = %d of 600 \r\n", waterSpillSpotCount,waterSpillLevel);
lastWaterSpillSpotCount = waterSpillSpotCount;
}