00_HMUARTLGW.pm: fix resend

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12270 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgernoth 2016-10-04 07:01:20 +00:00
parent 53843539b3
commit 39cf5c5d5e

View File

@ -1617,7 +1617,8 @@ sub HMUARTLGW_CheckCmdResp($)
} else {
$hash->{Helper}{Resend}++;
Log3($hash, 1, "HMUARTLGW ${name} did not respond for the " . $hash->{Helper}{Resend} . ". time, resending");
HMUARTLGW_send_frame($hash, $hash->{Helper}{LastSendFrame});
HMUARTLGW_send_frame($hash, pack("H*", $hash->{Helper}{LastSendFrame}));
InternalTimer(gettimeofday()+HMUARTLGW_CMD_TIMEOUT, "HMUARTLGW_CheckCmdResp", $hash, 0);
}
}