X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProtout.pm;h=f01a1481cc0a06681bc3ceccc065809f0c63f20e;hb=a0da21e1af6a9e4c7e582ed6fc3f5c93fea5b0c3;hp=8c5e56d9abe3cdf5da625734b33670350bbc189b;hpb=be8bb8ddece08d2893896418423a95548cbf316f;p=spider.git diff --git a/perl/DXProtout.pm b/perl/DXProtout.pm index 8c5e56d9..f01a1481 100644 --- a/perl/DXProtout.pm +++ b/perl/DXProtout.pm @@ -11,7 +11,7 @@ package DXProt; -@ISA = qw(DXProt DXChannel); +@ISA = qw(DXChannel); use DXUtil; use DXM; @@ -385,7 +385,7 @@ sub _gen_pc92 } for (@_) { $s .= '^' . _encode_pc92_call($_, $ext); - $ext = 0; # only the first slot has an ext. + $ext = 0 unless $sort eq 'A'; # only the first slot has an ext. } return $s . '^H99^'; } @@ -410,7 +410,7 @@ sub gen_pc92_with_time # add a local one sub pc92a { - return _gen_pc92('A', 0, @_); + return _gen_pc92('A', 2, @_); } # delete a local one @@ -422,7 +422,7 @@ sub pc92d # send a config sub pc92c { - return _gen_pc92('C', 0, @_); + return _gen_pc92('C', 1, @_); } # send a keep alive