Skip to content

Commit

Permalink
remove spurious packet length warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Matija Nalis committed Jan 9, 2015
1 parent 0b6283c commit 2fd61d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion raw4t_gp2_to_human.pl
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ ($$)
my $sCMD = get_byte(1);
my $sSUB = get_byte(1);
my $sLEN = get_byte(1);
if ("$sCMD$sSUB" ne $cmd_sub or $sLEN != $len_sub) { die "don't understand 0x1420 subpacket 0x$sCMD$sSUB($sLEN) -- should be 0x$cmd_sub($len_sub)" }
if ("$sCMD$sSUB" ne $cmd_sub) { die "don't understand 0x$CMD$SUB subpacket 0x$sCMD$sSUB($sLEN) -- should be 0x$cmd_sub($len_sub)" }
# elsif ($sLEN != $len_sub) { say "# wrong length of 0x$CMD$SUB subpacket 0x$sCMD$sSUB: $sLEN should be $len_sub" }
my $sDATA = get_byte ($sLEN-3); # sCMD+sSUB+sLEN have already been read

foreach my $d (map "$_", $sDATA =~ /(..)/g) {
Expand Down

0 comments on commit 2fd61d0

Please sign in to comment.