2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 17:36:39 +00:00

00_HMUARTLGW.pm: fix resend

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

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