Skip to content

Commit 4e43079

Browse files
committed
Dim brightness only when in startup
1 parent e7b7bf8 commit 4e43079

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Core/Src/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,13 @@ int main(void)
201201

202202
auto set_control_state = [&](uint8_t state) {
203203
if (state == old_state) return;
204+
if (state != TRANSITION_STARTUP) {
205+
rev4.set_domain_colour_and_brightness(CD_MAIN, PURPLE, 99);
206+
}
204207
old_state = state;
205208
switch (state) {
206209
case TRANSITION_STARTUP: {
210+
rev4.set_domain_colour_and_brightness(CD_MAIN, PURPLE, 5);
207211
rev4.set_lighting_control_state(&startup_state);
208212
break;
209213
}
File renamed without changes.

0 commit comments

Comments
 (0)