Skip to content

Commit 994e5ee

Browse files
authored
Merge pull request #725 from FrameworkComputer/lotus.led_input_module
Modified the input module no fully populated LED behavior
2 parents b97c7eb + 0bc1728 commit 994e5ee

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

zephyr/program/lotus/lotus/src/project_diagnostics.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
void start_fan_deferred(void)
2121
{
2222
/* force turn on the fan for diagnostic */
23-
dptf_set_fan_duty_target(5);
23+
dptf_set_fan_duty_target(20);
2424
}
2525
DECLARE_DEFERRED(start_fan_deferred);
2626

@@ -32,13 +32,10 @@ void check_device_deferred(void)
3232
if (get_deck_state() != DECK_ON && !get_standalone_mode())
3333
set_diagnostic(DIAGNOSTICS_INPUT_MODULE_FAULT, true);
3434

35-
/* force turn on the fan for diagnostic */
36-
dptf_set_fan_duty_target(5);
37-
38-
if (!(fan_get_rpm_actual(0) > 100))
35+
if (!(fan_get_rpm_actual(0) > 100) && !get_standalone_mode())
3936
set_diagnostic(DIAGNOSTICS_NO_RIGHT_FAN, true);
4037

41-
if (!(fan_get_rpm_actual(1) > 100))
38+
if (!(fan_get_rpm_actual(1) > 100) && !get_standalone_mode())
4239
set_diagnostic(DIAGNOSTICS_NO_LEFT_FAN, true);
4340

4441
/* Exit the duty mode and let thermal to control the fan */

zephyr/program/lotus/src/led.c

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

543543
/* Input Deck not fully populated */
544-
if (!input_deck_is_fully_populated() && !get_standalone_mode()) {
544+
if (!input_deck_is_fully_populated() && !get_standalone_mode() &&
545+
!chipset_in_state(CHIPSET_STATE_ANY_OFF)) {
545546
colors[0] = LED_RED;
546547
colors[1] = LED_BLUE;
547548
colors[2] = LED_OFF;

0 commit comments

Comments
 (0)