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
42cb6452
Commit
42cb6452
authored
Jan 08, 2019
by
Sven Greiner
Browse files
Fix
#4
: Reverse levels if start high is enabled
This code should be optimized to save flash.
parent
db85fe4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
rampinglight.c
View file @
42cb6452
...
...
@@ -452,7 +452,12 @@ int main(void) {
break
;
case
kFixed
:
output
=
(
output
%
FIXED_SIZE
)
+
1
;
output
+=
options
.
start_high
?
-
1
:
1
;
if
(
output
>
FIXED_SIZE
)
{
output
=
1
;
}
else
if
(
!
output
)
{
output
=
FIXED_SIZE
;
}
save_output
();
break
;
...
...
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