projects
/
air-quality
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
skip short reads
[air-quality]
/
mh-z19b.pl
diff --git
a/mh-z19b.pl
b/mh-z19b.pl
index
c925661
..
0c3fbd1
100755
(executable)
--- a/
mh-z19b.pl
+++ b/
mh-z19b.pl
@@
-29,7
+29,10
@@
while (1) {
die $! if ! defined($len);
if ( $len > 0 ) {
my @v = unpack('C*', $string);
- #warn "# $len ",dump($string), dump( @v ), $/;
+ if ( $#v < 8 ) {
+ warn "# $len ",dump($string), dump( @v ), $/;
+ next;
+ }
my $sum = 0;
foreach my $i ( 1 .. $#v - 1 ) {