Skip to content

Commit a2001df

Browse files
hnaikTTcfriedt
authored andcommitted
app: bmc: Flash LED on thermal trip event
- Updated `app/bmc/src/main.c` to implement functionality for flashing an LED when a thermal trip event is detected. Signed-off-by: himanshu naik <[email protected]>
1 parent 617bf57 commit a2001df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/bmc/src/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@ int main(void)
308308
ARRAY_FOR_EACH_PTR(BH_CHIPS, chip) {
309309
if (chip->data.therm_trip_triggered) {
310310
chip->data.therm_trip_triggered = false;
311+
312+
if (board_fault_led.port != NULL) {
313+
gpio_pin_set_dt(&board_fault_led, 1);
314+
}
315+
311316
if (IS_ENABLED(CONFIG_TT_FAN_CTRL)) {
312317
set_fan_speed(100);
313318
}

0 commit comments

Comments
 (0)