Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reactivation of time.sleep for CPU idle #72

Merged
merged 2 commits into from
Jul 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,10 @@ def coins_inserted():
def monitor_coins_and_button():
"""Monitors coins inserted and buttons pushed
"""
# time.sleep(0.5)

# 200 ms sleep for CPU idle and other processes
time.sleep(0.1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to test this because i've already do this change (see history). I'm changing it back because of a runtime issue.

# Too long a delay will have a negative effect on the coin detection and the lockout relay

#Wifi monitoring causes undesirable behavior sometimes.
#ssid=check_connectivity()
Expand Down