Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
avrcwa
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
leger
avrcwa
Commits
7b672f61
Unverified
Commit
7b672f61
authored
5 years ago
by
Jean-Benoist Leger
Browse files
Options
Downloads
Patches
Plain Diff
update vanne
parent
07c4f537
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vanne.c
+10
-4
10 additions, 4 deletions
vanne.c
with
10 additions
and
4 deletions
vanne.c
+
10
−
4
View file @
7b672f61
...
...
@@ -120,6 +120,7 @@ void vanne_close()
for
(
k
=
0
;
k
<
1000
;
k
++
)
if
(
vanne_internal_step_close
(
10
))
break
;
vanne_internal_status
=
EV_CLOSED
;
}
void
vanne_open
()
...
...
@@ -128,18 +129,23 @@ void vanne_open()
for
(
k
=
0
;
k
<
1000
;
k
++
)
if
(
vanne_internal_step_open
(
10
))
break
;
vanne_internal_status
=
EV_OPENED
;
}
void
vanne_vidange
()
{
uint16_t
k
;
uint16_t
kclose
;
uint16_t
kopen
;
vanne_close
();
for
(
k
=
0
;
k
<
1000
;
k
++
)
for
(
k
open
=
0
;
kopen
<
1000
;
k
open
++
)
if
(
vanne_internal_step_open
(
10
))
break
;
vanne_close
();
for
(
kclose
=
0
;
kclose
<
1000
;
kclose
++
)
if
(
vanne_internal_step_close
(
10
))
break
;
uint16_t
kmin
=
(
kopen
<
kclose
)
?
kopen
:
kclose
;
uint16_t
k2
=
0
;
for
(
k2
=
0
;
k2
<
k
/
2
;
k2
++
)
for
(
k2
=
0
;
k2
<
k
min
/
2
;
k2
++
)
if
(
vanne_internal_step_open
(
10
))
break
;
}
...
...
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