correct parsing of ACK.

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3221 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig
2013-05-26 15:28:46 +00:00
parent e6384456f7
commit b1fe8b91fc

View File

@@ -110,9 +110,9 @@ TRX_ELSE_Parse($$)
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;
}
@@ -122,7 +122,7 @@ TRX_ELSE_Parse($$)
my $res = "";
if ($type == 0x02) {
my $subtype = $rfxcom_data_array[1];
my $msg = $rfxcom_data_array[2];
my $msg = $rfxcom_data_array[3];
if (($msg != 0x00) && ($msg != 0x01)) {
Log 0, "TRX_ELSE: error transmit NACK=".sprintf("%02x",$msg);
}