Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AX.25
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
We are moving to Forgejo!
You are on a read-only GitLab instance.
Show more breadcrumbs
Digipex
AX.25
Commits
8f142fc7
Verified
Commit
8f142fc7
authored
2 years ago
by
Jeffrey Phillips Freeman
Browse files
Options
Downloads
Patches
Plain Diff
Added some temporary debugging output
parent
27c286f5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/apex/encoder/igate_tcp.rb
+4
-0
4 additions, 0 deletions
lib/apex/encoder/igate_tcp.rb
lib/apex/frame/immutable_path.rb
+1
-1
1 addition, 1 deletion
lib/apex/frame/immutable_path.rb
with
5 additions
and
1 deletion
lib/apex/encoder/igate_tcp.rb
+
4
−
0
View file @
8f142fc7
...
@@ -165,6 +165,10 @@ module Apex
...
@@ -165,6 +165,10 @@ module Apex
while
@packet_buffer
.
length
>
0
while
@packet_buffer
.
length
>
0
packet
=
@packet_buffer
.
pop
packet
=
@packet_buffer
.
pop
unless
(
filter_logresp
and
packet
.
start_with?
(
'#'
))
unless
(
filter_logresp
and
packet
.
start_with?
(
'#'
))
puts
(
"===================================="
)
puts
packet
.
class
.
to_s
puts
packet
.
to_s
puts
(
"-------------------------------------"
)
return
IGateTcp
::
decode_frame
(
packet
)
return
IGateTcp
::
decode_frame
(
packet
)
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
lib/apex/frame/immutable_path.rb
+
1
−
1
View file @
8f142fc7
...
@@ -14,7 +14,7 @@ module Apex
...
@@ -14,7 +14,7 @@ module Apex
hops
.
each
do
|
hop
|
hops
.
each
do
|
hop
|
raise
ArgumentError
.
new
(
"All arguments must not be nil:
#{
hops
.
to_s
}
"
)
if
(
hop
.
nil?
)
raise
ArgumentError
.
new
(
"All arguments must not be nil:
#{
hops
.
to_s
}
"
)
if
(
hop
.
nil?
)
raise
ArgumentError
.
new
(
"All arguments must be of type Hop:
#{
hops
.
class
.
to_s
}
"
)
if
not
hop
.
kind_of?
Apex
::
Hop
raise
ArgumentError
.
new
(
"All arguments must be of type Hop:
#{
hops
.
class
.
to_s
}
"
)
if
not
hop
.
kind_of?
Apex
::
Hop
#
raise ArgumentError.new("A seen hop can not follow an unseen hop: #{hops.join(',').to_s}") if (hop.seen?) && (!last_seen)
raise
ArgumentError
.
new
(
"A seen hop can not follow an unseen hop:
#{
hops
.
join
(
','
).
to_s
}
"
)
if
(
hop
.
seen?
)
&&
(
!
last_seen
)
last_seen
=
false
if
not
hop
.
seen?
last_seen
=
false
if
not
hop
.
seen?
@path_array
<<
hop
@path_array
<<
hop
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment