Skip to content

Commit

Permalink
(fix) set flap to 0 after pause
Browse files Browse the repository at this point in the history
  • Loading branch information
tu10ng committed May 20, 2023
1 parent a8566e4 commit 07a287d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions autoflap.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,9 @@ def print_cat_awake():
# `Pause' to sleep the program
if keyboard.is_pressed("pause"):
wait_release("pause")
press("r")
time.sleep(0.005)
press("r")
time.sleep(0.005)
press("r")
for _ in range(5):
time.sleep(0.01)
press("r")

print_cat_sleep()

Expand Down

0 comments on commit 07a287d

Please sign in to comment.