Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Open-Cube FW
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
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
Open Cube
Open-Cube FW
Commits
9d5f58f4
Commit
9d5f58f4
authored
8 months ago
by
Václav Jelínek
Browse files
Options
Downloads
Patches
Plain Diff
Repair OC ultrasonic autobuild error
parent
d1403096
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#96205
passed
8 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+4
-1
4 additions, 1 deletion
.gitignore
oc_sensors/ultrasonic/Core/Src/main.c
+2
-1
2 additions, 1 deletion
oc_sensors/ultrasonic/Core/Src/main.c
with
6 additions
and
2 deletions
.gitignore
+
4
−
1
View file @
9d5f58f4
.idea
*.asv
\ No newline at end of file
*.asv
/oc_sensors/.vs
/oc_sensors/.settings
/.vs
This diff is collapsed.
Click to expand it.
oc_sensors/ultrasonic/Core/Src/main.c
+
2
−
1
View file @
9d5f58f4
...
...
@@ -184,9 +184,10 @@ void measure_data(void) {
}
void
choose_send_data
(
void
)
{
uint16_t
distance
=
0
;
switch
(
sensor_state
)
{
case
S_MODE_DISTANCE
:
uint16_t
distance
=
(
uint16_t
)
ultra_sensor
.
distance
;
distance
=
(
uint16_t
)
ultra_sensor
.
distance
;
send_data
(
sensor_state
,
&
distance
,
2
,
USART1
);
break
;
default:
...
...
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