X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=unpack.pl;h=683e731bd395c436e7834896c342426293d2f3b3;hb=e3f6025c2bac58d455a9fc28f9fc025bf407147c;hp=00f840f914e854fb2a1497ccb73d557b2d99aead;hpb=17c20ad45b3d0830fe3d450e8eef1754ea7ac30d;p=zc diff --git a/unpack.pl b/unpack.pl index 00f840f..683e731 100755 --- a/unpack.pl +++ b/unpack.pl @@ -227,6 +227,12 @@ while(<>) { } +if ( $raw ) { + $raw =~ s{^\s+}{}; # strip leading spaces + print "## $timestamp $sensor $imei $up_down $raw\n"; + protocol_decode( $up_down, $raw ); +} + print "stat = ",dump($stat), "\n"; # 6. Protocol Format