2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

correct parsing of ACK.

git-svn-id: https://svn.fhem.de/fhem/trunk@3221 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig 2013-05-26 15:28:46 +00:00
parent 18089e8ff5
commit aeab0d739f

View File

@ -110,9 +110,9 @@ TRX_ELSE_Parse($$)
push (@rfxcom_data_array, ord($_) ); push (@rfxcom_data_array, ord($_) );
} }
my $num_bytes = ord(substr($msg,0,1)); my $num_bytes = ord(substr($bin_msg,0,1));
if ($num_bytes < 3) { if ($num_bytes < 4) {
return; return;
} }
@ -122,7 +122,7 @@ TRX_ELSE_Parse($$)
my $res = ""; my $res = "";
if ($type == 0x02) { if ($type == 0x02) {
my $subtype = $rfxcom_data_array[1]; my $subtype = $rfxcom_data_array[1];
my $msg = $rfxcom_data_array[2]; my $msg = $rfxcom_data_array[3];
if (($msg != 0x00) && ($msg != 0x01)) { if (($msg != 0x00) && ($msg != 0x01)) {
Log 0, "TRX_ELSE: error transmit NACK=".sprintf("%02x",$msg); Log 0, "TRX_ELSE: error transmit NACK=".sprintf("%02x",$msg);
} }