projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5c15f6e
)
possibly fix AGW connections to remove newline characters
author
minima
<minima>
Tue, 20 Aug 2002 18:07:58 +0000
(18:07 +0000)
committer
minima
<minima>
Tue, 20 Aug 2002 18:07:58 +0000
(18:07 +0000)
Changes
patch
|
blob
|
history
perl/AGWMsg.pm
patch
|
blob
|
history
diff --git
a/Changes
b/Changes
index 6610c12c1102c72a73b36b63435f5620cf77cd41..5c07d46c7be10cf05ab3cbda4dfbf5e0a31cc740 100644
(file)
--- a/
Changes
+++ b/
Changes
@@
-1,6
+1,9
@@
20Aug02=======================================================================
1. fix lines containing just the character '0' in messages (and console.pl)
(K1XX).
20Aug02=======================================================================
1. fix lines containing just the character '0' in messages (and console.pl)
(K1XX).
+2. remove all newline characters from AGW data, thus treating it like a
+'normal' ax25 connection where the 'newline' convention is just carriage
+return (K1XX)
06Aug02=======================================================================
1. added 5.5Mhz band as '60m'.
29Jul02=======================================================================
06Aug02=======================================================================
1. added 5.5Mhz band as '60m'.
29Jul02=======================================================================
diff --git
a/perl/AGWMsg.pm
b/perl/AGWMsg.pm
index 4a36d49a6a40536468e1119768e5fb1773b72448..08660d626d987ea7de5b036c9ca771bf06ccaaaa 100644
(file)
--- a/
perl/AGWMsg.pm
+++ b/
perl/AGWMsg.pm
@@
-266,6
+266,7
@@
sub _decode
$data = '' unless defined $data;
if ($sort eq 'D') {
my $d = unpack "Z*", $data;
$data = '' unless defined $data;
if ($sort eq 'D') {
my $d = unpack "Z*", $data;
+ $d =~ s/\cJ//g; # remove all new line characters
$d =~ s/\cM$//;
dbg("AGW Data In port: $port pid: $pid '$from'->'$to' length: $len \"$d\"") if isdbg('agw');
my $conn = _find($from eq $main::mycall ? $to : $from);
$d =~ s/\cM$//;
dbg("AGW Data In port: $port pid: $pid '$from'->'$to' length: $len \"$d\"") if isdbg('agw');
my $conn = _find($from eq $main::mycall ? $to : $from);
@@
-295,6
+296,7
@@
sub _decode
}
} elsif ($sort eq 'I' || $sort eq 'S' || $sort eq 'U' || $sort eq 'M' || $sort eq 'T') {
my $d = unpack "Z*", $data;
}
} elsif ($sort eq 'I' || $sort eq 'S' || $sort eq 'U' || $sort eq 'M' || $sort eq 'T') {
my $d = unpack "Z*", $data;
+ $d =~ s/\cJ//g; # remove all new line characters
$d =~ s/\cM$//;
my @lines = split /\cM/, $d;
$d =~ s/\cM$//;
my @lines = split /\cM/, $d;