2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 07:19:24 +00:00

fix: warning

git-svn-id: https://svn.fhem.de/fhem/trunk@22006 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hexenmeister 2020-05-22 17:23:32 +00:00
parent b54a5dc415
commit 491d7f82cf

View File

@ -40,12 +40,12 @@ my @clients = qw(
MQTT_BRIDGE
);
use DevIo;
sub MQTT_Initialize($) {
my $hash = shift @_;
require "$main::attr{global}{modpath}/FHEM/DevIo.pm";
# Provider
$hash->{Clients} = join (':',@clients);
$hash->{ReadyFn} = "MQTT::Ready";
@ -441,6 +441,7 @@ sub Start($) {
}
} else {
$hash->{".cinitmark"} = 1;
$hash->{".reconnectmark"} = 1;
}
DevIo_CloseDev($hash);
@ -484,8 +485,8 @@ sub Init($) {
send_connect($hash);
readingsSingleUpdate($hash,"connection","connecting",1);
$hash->{ping_received}=1;
Timer($hash);
$hash->{".reconnectmark"} = 1;
Timer($hash);
return undef;
}