$allowzero $decode_dk0wcy $send_opernam @checklist
$eph_pc15_restime $pc9x_past_age $pc9x_future_age
$pc10_dupe_age $pc92_slug_changes $last_pc92_slug
+ $pc92Ain $pc92Cin $pc92Din $pc92Kin
);
$pc9x_past_age = 62*60; # maximum age in the past of a px9x (a config record might be the only
}
$parent->here(Route::here($here));
$parent->version($version || $pc19_version) if $version;
- $parent->build($build) if $build && $build > $parent->build;
+ $parent->build($build) if $build;
$parent->PC92C_dxchan($self->{call}) unless $self->{call} eq $parent->call;
return ($parent, @radd);
}
}
} elsif ($sort eq 'K') {
+ $pc92Kin += length $line if $sort eq 'K';
+
# remember the last channel we arrived on
$parent->PC92C_dxchan($self->{call}) unless $self->{call} eq $parent->call;
}
} elsif ($sort eq 'A' || $sort eq 'D' || $sort eq 'C') {
+ $pc92Ain += length $line if $sort eq 'A';
+ $pc92Cin += length $line if $sort eq 'C';
+ $pc92Din += length $line if $sort eq 'D';
+
# remember the last channel we arrived on
$parent->PC92C_dxchan($self->{call}) unless $self->{call} eq $parent->call;
# this is the main route section
# here is where all the routes are created and destroyed
- # cope with missing duplicate node calls in the first slot for A or D
+ # cope with missing duplicate node calls in the first slot
my $me = $_[4] || '';
- if (($sort eq 'A' || $sort eq 'D')) {
- $me ||= _encode_pc92_call($parent) if !$me ;
- } else {
- unless ($me) {
- dbg("PCPROT: this type of PC92 *must* have a node call in the first slot, ignored") if is_dbg('chanerr');
- return;
- }
- }
+ $me ||= _encode_pc92_call($parent) unless $me ;
- my @ent = map {[ _decode_pc92_call($_) ]} grep {$_ && /^[0-7]/} $me, @_[5 .. $#_];
+ my @ent = map {my @a = _decode_pc92_call($_); @a ? \@a : ()} grep {$_ && /^[0-7]/} $me, @_[5 .. $#_];
if (@ent) {
# do a pass through removing any references to either locally connected nodes or mycall
my @nent;
for (@ent) {
- next unless $_;
+ next unless $_ && @$_;
if ($_->[0] eq $main::mycall || DXChannel::get($_->[0])) {
dbg("PCPROT: $_->[0] refers to locally connected node, ignored") if isdbg('chanerr');
next;