Skip to content

Commit

Permalink
fan: turn off before rebooting (#103)
Browse files Browse the repository at this point in the history
* fan: turn off before rebooting

fan can get stuck at 100% otherwise in the
bootloader, and if an update is performed,
stays at full speed for a few dozens seconds

fix comment about turning on the fan

---------

Signed-off-by: Cyril Fougeray <[email protected]>
  • Loading branch information
fouge authored Oct 22, 2024
1 parent cc78047 commit d882335
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions main_board/src/power/boot/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ reboot_thread()
LOG_INF("Rebooting in %u seconds", delay);
} while (k_msleep(delay * 1000 - SYSTEM_RESET_UI_DELAY_MS) != 0);

fan_turn_off();
operator_leds_set_pattern(
orb_mcu_main_DistributorLEDsPattern_DistributorRgbLedPattern_OFF, 0,
NULL);
Expand Down
1 change: 0 additions & 1 deletion main_board/src/temperature/fan/fan.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ fan_turn_off(void);

/**
* Turn on fan, back to its original speed.
* only way to turn back on is to use fan_turn_off()
*/
void
fan_turn_on(void);
Expand Down

0 comments on commit d882335

Please sign in to comment.