Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sven Greiner
rampinglight
Commits
e47b8bd1
Commit
e47b8bd1
authored
Dec 22, 2018
by
Sven Greiner
Browse files
Start with last level if mode memory in ramping mode
parent
2e363d26
Changes
1
Hide whitespace changes
Inline
Side-by-side
rampinglight.c
View file @
e47b8bd1
...
...
@@ -369,7 +369,15 @@ int main(void) {
case
kDefault
:
// This is a special state that does nothing but deciding which is the
// correct state for the current mode (ramping vs fixed)
state
=
options
.
fixed_mode
?
kFixed
:
kRamping
;
if
(
options
.
fixed_mode
)
{
state
=
kFixed
;
}
else
{
if
(
options
.
mode_memory
)
{
state
=
kFrozen
;
}
else
{
state
=
kRamping
;
}
}
continue
;
// Skip main loop cycle and continue with correct mode
case
kRamping
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment