+16Oct02=======================================================================
+1. decrease the default max length of PC16/19 to around 180 characters to be
+slightly friendlier to ARC, which seems to have a difficulty reconstructing
+lines from multiple packets. Also make the value settable via set/var.
15Oct02=======================================================================
1. made some detail changes to the raw USDB data and the routines that
generate and operate on them. There were some bugs involving a few 'missing'
next unless $_;
my $ref = $_;
my $str = sprintf "^%s %s %d", $ref->call, $ref->conf ? '*' : '-', $ref->here;
- if (length($s) + length($str) >= $sentencelth) {
+ if (length($s) + length($str) > $sentencelth) {
push @out, "PC16^$ncall" . $s . sprintf "^%s^", get_hops(16);
$s = "";
}
$s .= $str;
}
- push @out, "PC16^$ncall" . $s . sprintf "^%s^", get_hops(16) if length $s;
+ push @out, "PC16^$ncall" . $s . sprintf "^%s^", get_hops(16);
return @out;
}
my $conf = $ref->conf;
my $version = $ref->version;
my $str = "^$here^$call^$conf^$version";
- if (length($s) + length($str) >= $sentencelth) {
+ if (length($s) + length($str) > $sentencelth) {
push @out, "PC19" . $s . sprintf "^%s^", get_hops(19);
$s = "";
}
$s .= $str;
}
- push @out, "PC19" . $s . sprintf "^%s^", get_hops(19) if length $s;
+ push @out, "PC19" . $s . sprintf "^%s^", get_hops(19);
return @out;
}