2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

00_HMUARTLGW.pm: reorder dispatch and send

git-svn-id: https://svn.fhem.de/fhem/trunk@11814 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgernoth 2016-07-18 10:38:06 +00:00
parent 28490817a6
commit 426a119735

View File

@ -1205,9 +1205,6 @@ sub HMUARTLGW_Parse($$$$)
"HMUARTLGW ${name} Ack: ${ack} ".(($2)?$2:""));
$recv = $msg;
}
HMUARTLGW_UpdateQueuedPeer($hash);
HMUARTLGW_SendPendingCmd($hash);
} elsif ($msg =~ m/^(05.*)$/) {
$recv = $1;
}
@ -1277,6 +1274,11 @@ sub HMUARTLGW_Parse($$$$)
}
}
if ($hash->{DevState} == HMUARTLGW_STATE_RUNNING) {
HMUARTLGW_UpdateQueuedPeer($hash);
HMUARTLGW_SendPendingCmd($hash);
}
return;
}