Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
4 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Avoid comparing int and uint
parent
84d55830
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ampel-firmware/led_effects.cpp
+1
-1
ampel-firmware/led_effects.cpp
ampel-firmware/led_effects.h
+1
-1
ampel-firmware/led_effects.h
with
2 additions
and
2 deletions
+2
-2
ampel-firmware/led_effects.cpp
+
1
-
1
View file @
26f6619a
...
@@ -146,7 +146,7 @@ namespace led_effects {
...
@@ -146,7 +146,7 @@ namespace led_effects {
pixels
.
show
();
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
)
{
if
(
config
::
night_mode
)
{
return
;
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
ampel-firmware/led_effects.h
+
1
-
1
View file @
26f6619a
...
@@ -29,7 +29,7 @@ namespace led_effects {
...
@@ -29,7 +29,7 @@ namespace led_effects {
int
countdownToZero
();
int
countdownToZero
();
void
showWaitingLED
(
uint32_t
color
);
void
showWaitingLED
(
uint32_t
color
);
void
showKITTWheel
(
uint32_t
color
,
uint16_t
duration_s
=
2
);
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
);
void
displayCO2color
(
uint16_t
co2
);
}
}
#endif
#endif
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets