Fix warning at the wrong time. (#10351)

Signed-off-by: Matthew Skinner <matt@pcmus.com>
This commit is contained in:
Matthew Skinner 2021-04-01 06:48:19 +11:00 committed by GitHub
parent d64f13351e
commit ec8f411774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1735,8 +1735,8 @@ public class IpCameraHandler extends BaseThingHandler {
onvifCamera.connect(thing.getThingTypeUID().getId().equals(ONVIF_THING)); onvifCamera.connect(thing.getThingTypeUID().getId().equals(ONVIF_THING));
} }
// for poll times above 9 seconds don't display a warning about the Image channel. // for poll times 9 seconds and above don't display a warning about the Image channel.
if (9000 <= cameraConfig.getPollTime() && cameraConfig.getUpdateImageWhen().contains("1")) { if (9000 > cameraConfig.getPollTime() && cameraConfig.getUpdateImageWhen().contains("1")) {
logger.warn( 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."); "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.");
} }