Skip to content

Commit

Permalink
feat(smoke-detector): add smoke detector
Browse files Browse the repository at this point in the history
  • Loading branch information
TeodorDre committed Jul 2, 2020
1 parent 327bf23 commit 134a237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simple-led/app.py
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ def start_app():
GPIO.setmode(GPIO.BCM)
GPIO.setup(gpio_port_number, GPIO.OUT)

if check_gpio_is_enabled():
if check_gpio_is_enabled(gpio_port_number):
print('Gpio pin was enabled')
GPIO.output(gpio_port_number, gpio_port_number)

@@ -38,4 +38,4 @@ def start_app():
GPIO.cleanup()

finally:
GPIO.cleanup
GPIO.cleanup()

0 comments on commit 134a237

Please sign in to comment.