Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
26f6619a
Commit
26f6619a
authored
Feb 16, 2021
by
Eric Duminil
Browse files
Avoid comparing int and uint
parent
84d55830
Changes
2
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/led_effects.cpp
View file @
26f6619a
...
...
@@ -146,7 +146,7 @@ namespace led_effects {
pixels
.
show
();
}
void
showRainbowWheel
(
int
duration_ms
,
uint16_t
hue_increment
)
{
void
showRainbowWheel
(
u
int
16_t
duration_ms
,
uint16_t
hue_increment
)
{
if
(
config
::
night_mode
)
{
return
;
}
...
...
ampel-firmware/led_effects.h
View file @
26f6619a
...
...
@@ -29,7 +29,7 @@ namespace led_effects {
int
countdownToZero
();
void
showWaitingLED
(
uint32_t
color
);
void
showKITTWheel
(
uint32_t
color
,
uint16_t
duration_s
=
2
);
void
showRainbowWheel
(
int
duration_ms
=
1000
,
uint16_t
hue_increment
=
50
);
void
showRainbowWheel
(
u
int
16_t
duration_ms
=
1000
,
uint16_t
hue_increment
=
50
);
void
displayCO2color
(
uint16_t
co2
);
}
#endif
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment