mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 22:22:11 +08:00
tizi: enable fan for shutdown (#27890)
* tizi: enable fan for shutdown * Update system/hardware/tici/hardware.py --------- Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: 8f1753aaab70f5498a57c430393cd0f84693306b
This commit is contained in:
@@ -467,10 +467,10 @@ class Tici(HardwareBase):
|
||||
os.system("sudo chmod a+w /dev/kmsg")
|
||||
|
||||
# TODO: remove the if once agnos 7 ships
|
||||
# Turn off fan, turned on by the ABL
|
||||
# Ensure fan gpio is enabled so fan runs until shutdown, also turned on at boot by the ABL
|
||||
if os.path.exists('/sys/class/gpio/gpio49/'):
|
||||
gpio_init(GPIO.SOM_ST_IO, True)
|
||||
gpio_set(GPIO.SOM_ST_IO, 0)
|
||||
gpio_set(GPIO.SOM_ST_IO, 1)
|
||||
|
||||
# *** IRQ config ***
|
||||
|
||||
|
||||
Reference in New Issue
Block a user