gpio_export return type (#29158)

return type
This commit is contained in:
Maxime Desroches
2023-07-26 16:01:26 -07:00
committed by GitHub
parent e53ab3a18a
commit 922e27fa5a

View File

@@ -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))