mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
gpio_export return type (#29158)
return type
old-commit-hash: 922e27fa5a
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ def gpio_read(pin: int) -> Optional[bool]:
|
||||
|
||||
return val
|
||||
|
||||
def gpio_export(pin: int):
|
||||
def gpio_export(pin: int) -> None:
|
||||
try:
|
||||
with open("/sys/class/gpio/export", 'w') as f:
|
||||
f.write(str(pin))
|
||||
|
||||
Reference in New Issue
Block a user