diff --git a/mlx90640/mlx90640_lcd_display.c b/mlx90640/mlx90640_lcd_display.c index 0a96582..bd75144 100644 --- a/mlx90640/mlx90640_lcd_display.c +++ b/mlx90640/mlx90640_lcd_display.c @@ -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; }