00_HMUARTLGW.pm: reorder dispatch and send

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

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;
}