Skip to content

Commit 6a08b82

Browse files
committed
Lotus: sw4 needs to disable with standalone mode
Signed-off-by: Josh-Tsai <josh_tsai@compal.com>
1 parent 1e42040 commit 6a08b82

File tree

1 file changed

+2
-1
lines changed
  • zephyr/program/lotus/src

1 file changed

+2
-1
lines changed

zephyr/program/lotus/src/led.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,8 @@ static void led_tick(void)
522522

523523
#ifdef CONFIG_BOARD_LOTUS
524524
/* GPU bay cover detect switch open */
525-
if (gpio_pin_get_dt(GPIO_DT_FROM_NODELABEL(gpio_f_beam_open_l)) == 0) {
525+
if (gpio_pin_get_dt(GPIO_DT_FROM_NODELABEL(gpio_f_beam_open_l)) == 0 &&
526+
!get_standalone_mode()) {
526527
colors[0] = LED_RED;
527528
colors[1] = LED_AMBER;
528529
colors[2] = LED_OFF;

0 commit comments

Comments
 (0)