gpio_export return type (#29158)
return type old-commit-hash: 922e27fa5a7b3bf282191f9e91e6eeaaa76adf20
This commit is contained in:
@@ -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