projects
/
zc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17c20ad
)
dump last
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 18 Sep 2020 10:01:58 +0000
(12:01 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 18 Sep 2020 10:01:58 +0000
(12:01 +0200)
unpack.pl
patch
|
blob
|
history
diff --git
a/unpack.pl
b/unpack.pl
index
00f840f
..
683e731
100755
(executable)
--- 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