diff --git a/pi/.gitignore b/pi/.gitignore index adc0d3e..c7af37c 100644 --- a/pi/.gitignore +++ b/pi/.gitignore @@ -1,3 +1,4 @@ get-pip.py *.pem *.pyc +nohup.out diff --git a/pi/.gitignore b/pi/.gitignore index adc0d3e..c7af37c 100644 --- a/pi/.gitignore +++ b/pi/.gitignore @@ -1,3 +1,4 @@ get-pip.py *.pem *.pyc +nohup.out diff --git a/pi/monitor.py b/pi/monitor.py index 3038c63..8636c29 100644 --- a/pi/monitor.py +++ b/pi/monitor.py @@ -37,10 +37,8 @@ now_pressed = b.is_pressed if now_pressed == status: if now_pressed: - pass b.wait_for_release(5) else: - pass b.wait_for_press(5) now_pressed = b.is_pressed if now_pressed != status or time() - last_report > 120: @@ -50,3 +48,4 @@ reportAndSetTime(status) sleep(1) + sys.stdout.flush()