Skip to content

Commit be56867

Browse files
ArthurGibertchmanie
authored andcommitted
fix(panner): make LED color more consistent
1 parent e674d84 commit be56867

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

faderpunk/src/apps/panner.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,16 @@ pub async fn run(
451451
let led_bright = split_unsigned_value(
452452
storage.query(|s: &Storage| s.wave).at(lfo_pos as usize),
453453
);
454-
leds.set(1, Led::Top, Color::Red, Brightness::Custom(led_bright[0]));
454+
leds.set(
455+
1,
456+
Led::Top,
457+
get_color_for(storage.query(|s: &Storage| s.wave)),
458+
Brightness::Custom(led_bright[0]),
459+
);
455460
leds.set(
456461
1,
457462
Led::Bottom,
458-
Color::Red,
463+
get_color_for(storage.query(|s: &Storage| s.wave)),
459464
Brightness::Custom(led_bright[1]),
460465
);
461466
}

0 commit comments

Comments
 (0)