Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
trainidUSB
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
Releases
Model registry
Operate
Environments
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
FE
trainidUSB
Commits
753a3e40
Commit
753a3e40
authored
5 years ago
by
Bruno Fernandes
Browse files
Options
Downloads
Patches
Plain Diff
Minor cleanup
parent
93e70fbe
Branches
feat/dynamic-manager
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
trainidUSB.sh
+2
-2
2 additions, 2 deletions
trainidUSB.sh
with
2 additions
and
2 deletions
trainidUSB.sh
+
2
−
2
View file @
753a3e40
...
...
@@ -81,7 +81,7 @@ function trainidUSB(){
# Baud 115220
# Interrupt signal should be generate with CHAR STX
stty
-F
$DEVICE
115200 intr
$STX_dec
# Reading of line stops at
é
ETX_cha
t
# Reading of line stops at ETX_cha
r
readArgs
=
"-d
$ETX_char
"
fi
...
...
@@ -107,7 +107,7 @@ function trainidUSB(){
if
!
[
-z
$checkCRC
]
;
then
#CRC calculation
crc
=
0
for
((
i
=
0
;
i<
1
2
;
i++
))
for
((
i
=
0
;
i<
${#
timingInfoData
}
/
2
;
i++
))
do
crc
=
$((
$crc
^
$(
hex2dec
${
timingInfoData
:0:2
}
)
))
timingInfoData
=
${
timingInfoData
:2
}
...
...
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