Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECSS Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
AcubeSat-OBC
ECSS Services
Commits
5f5a0eb0
Commit
5f5a0eb0
authored
6 years ago
by
Grigoris Pavlakis
Committed by
Grigoris Pavlakis
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix Vera's complaints and a warning I spotted when building CRCHelper
parent
b8b39eb5
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
inc/Services/ParameterService.hpp
+1
-1
1 addition, 1 deletion
inc/Services/ParameterService.hpp
src/Helpers/CRCHelper.cpp
+1
-1
1 addition, 1 deletion
src/Helpers/CRCHelper.cpp
with
2 additions
and
2 deletions
inc/Services/ParameterService.hpp
+
1
−
1
View file @
5f5a0eb0
...
...
@@ -5,7 +5,7 @@
#include
"ErrorHandler.hpp"
#include
"etl/map.h"
// Number of stored parameters. CONFIGLENGTH is just a dummy number for now
, this should be statically set
// Number of stored parameters. CONFIGLENGTH is just a dummy number for now
.
#define CONFIGLENGTH 5
/**
...
...
This diff is collapsed.
Click to expand it.
src/Helpers/CRCHelper.cpp
+
1
−
1
View file @
5f5a0eb0
...
...
@@ -9,7 +9,7 @@ uint16_t CRCHelper::calculateCRC(const uint8_t* message, uint32_t length) {
// CRC16-CCITT generator polynomial (as specified in standard)
uint16_t
polynomial
=
0x1021u
;
for
(
int
i
=
0
;
i
<
length
;
i
++
)
{
for
(
u
int
32_t
i
=
0
;
i
<
length
;
i
++
)
{
// "copy" (XOR w/ existing contents) the current msg bits into the MSB of the shift register
shiftReg
^=
(
message
[
i
]
<<
8u
);
...
...
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