From 76766ed4d84026e985f0d77216743bc4dea71a0d Mon Sep 17 00:00:00 2001 From: Matthew Skinner Date: Thu, 1 Apr 2021 06:48:19 +1100 Subject: [PATCH] Fix warning at the wrong time. (#10351) Signed-off-by: Matthew Skinner --- .../binding/ipcamera/internal/handler/IpCameraHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java index 9e0c93215cc02..ddc7a5d5929b0 100644 --- a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java +++ b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java @@ -1735,8 +1735,8 @@ public void initialize() { onvifCamera.connect(thing.getThingTypeUID().getId().equals(ONVIF_THING)); } - // for poll times above 9 seconds don't display a warning about the Image channel. - if (9000 <= cameraConfig.getPollTime() && cameraConfig.getUpdateImageWhen().contains("1")) { + // for poll times 9 seconds and above don't display a warning about the Image channel. + if (9000 > cameraConfig.getPollTime() && cameraConfig.getUpdateImageWhen().contains("1")) { logger.warn( "The Image channel is set to update more often than 8 seconds. This is not recommended. The Image channel is best used only for higher poll times. See the readme file on how to display the cameras picture for best results or use a higher poll time."); }