Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Astri Packet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BIAS
Packets
Astri Packet
Commits
98c18630
Commit
98c18630
authored
1 year ago
by
Valerio Pastore
Browse files
Options
Downloads
Patches
Plain Diff
fix length in recognizing
parent
371a5a3a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
deps/Base-DAQ
+1
-1
1 addition, 1 deletion
deps/Base-DAQ
src/AstriHornGeneric.cpp
+1
-1
1 addition, 1 deletion
src/AstriHornGeneric.cpp
src/AstriMaGeneric.cpp
+2
-1
2 additions, 1 deletion
src/AstriMaGeneric.cpp
with
4 additions
and
3 deletions
Base-DAQ
@
840f0fa1
Compare
7aaf28f4
...
840f0fa1
Subproject commit
7aaf28f461b0bee3cc1f809b5d8ee07aa14fb70
6
Subproject commit
840f0fa1970e363716386175149aecf60e82c99
6
This diff is collapsed.
Click to expand it.
src/AstriHornGeneric.cpp
+
1
−
1
View file @
98c18630
...
...
@@ -32,7 +32,7 @@ bool AstriHornGeneric::isRecognizedHeader() const {
size_t
type
=
this
->
operator
[](
"type"
).
value
();
size_t
subtype
=
this
->
operator
[](
"subtype"
).
value
();
ssize_t
length
=
this
->
operator
[](
"length"
).
value
();
ssize_t
totLength
=
this
->
getHeaderSize
()
+
length
+
this
->
getTailSize
();
ssize_t
totLength
=
this
->
getHeaderSize
()
+
length
-
1
+
this
->
getTailSize
();
std
::
tuple
<
size_t
,
size_t
,
size_t
>
target
=
std
::
make_tuple
(
type
,
subtype
,
totLength
);
auto
it
=
std
::
find
(
AstriHorn
::
recognizedPackets
.
begin
(),
AstriHorn
::
recognizedPackets
.
end
(),
target
);
...
...
This diff is collapsed.
Click to expand it.
src/AstriMaGeneric.cpp
+
2
−
1
View file @
98c18630
...
...
@@ -32,7 +32,8 @@ bool AstriMaGeneric::isRecognizedHeader() const {
size_t
type
=
this
->
operator
[](
"type"
).
value
();
size_t
subtype
=
this
->
operator
[](
"subtype"
).
value
();
ssize_t
length
=
this
->
operator
[](
"length"
).
value
();
ssize_t
totLength
=
this
->
getHeaderSize
()
+
length
+
this
->
getTailSize
();
ssize_t
totLength
=
this
->
getHeaderSize
()
+
length
-
1
+
this
->
getTailSize
();
std
::
tuple
<
size_t
,
size_t
,
size_t
>
target
=
std
::
make_tuple
(
type
,
subtype
,
totLength
);
auto
it
=
std
::
find
(
AstriMa
::
recognizedPackets
.
begin
(),
AstriMa
::
recognizedPackets
.
end
(),
target
);
...
...
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