Skip to content

Commit

Permalink
Switch lock HIGH and LOW to see if does anything
Browse files Browse the repository at this point in the history
  • Loading branch information
gideonshaked committed Jul 29, 2021
1 parent 6e614f8 commit 3b37338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/server/movement_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def lock_command() -> None:

def lock() -> None:
logging.info("Locking")
GPIO.output(SLEEP, GPIO.HIGH)
GPIO.output(SLEEP, GPIO.LOW)
data.commands["lock"] = None
logging.debug("lock command set back to null")

Expand All @@ -125,7 +125,7 @@ def lock() -> None:

def unlock() -> None:
logging.info("Unlocking")
GPIO.output(SLEEP, GPIO.LOW)
GPIO.output(SLEEP, GPIO.HIGH)
data.commands["lock"] = None
logging.debug("lock command set back to null")

Expand Down

0 comments on commit 3b37338

Please sign in to comment.