gpio_export return type (#29158)

return type
old-commit-hash: 922e27fa5a
beeps
Maxime Desroches 2 years ago committed by GitHub
parent 0903b55fca
commit 80101b0e20
  1. 2
      common/gpio.py

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

Loading…
Cancel
Save