2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 20:24:36 +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 MQTT_BRIDGE
); );
use DevIo;
sub MQTT_Initialize($) { sub MQTT_Initialize($) {
my $hash = shift @_; my $hash = shift @_;
require "$main::attr{global}{modpath}/FHEM/DevIo.pm";
# Provider # Provider
$hash->{Clients} = join (':',@clients); $hash->{Clients} = join (':',@clients);
$hash->{ReadyFn} = "MQTT::Ready"; $hash->{ReadyFn} = "MQTT::Ready";
@ -441,6 +441,7 @@ sub Start($) {
} }
} else { } else {
$hash->{".cinitmark"} = 1; $hash->{".cinitmark"} = 1;
$hash->{".reconnectmark"} = 1;
} }
DevIo_CloseDev($hash); DevIo_CloseDev($hash);
@ -484,8 +485,8 @@ sub Init($) {
send_connect($hash); send_connect($hash);
readingsSingleUpdate($hash,"connection","connecting",1); readingsSingleUpdate($hash,"connection","connecting",1);
$hash->{ping_received}=1; $hash->{ping_received}=1;
Timer($hash);
$hash->{".reconnectmark"} = 1; $hash->{".reconnectmark"} = 1;
Timer($hash);
return undef; return undef;
} }