]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix warning at the wrong time. (#10351)
authorMatthew Skinner <matt@pcmus.com>
Wed, 31 Mar 2021 19:48:19 +0000 (06:48 +1100)
committerGitHub <noreply@github.com>
Wed, 31 Mar 2021 19:48:19 +0000 (21:48 +0200)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java

index 9e0c93215cc021aea0c5e30528fd68c7018961ff..ddc7a5d5929b07defe2c2f8ad8832fc81bd9d756 100644 (file)
@@ -1735,8 +1735,8 @@ public class IpCameraHandler extends BaseThingHandler {
             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.");
         }