From 8aede99faed3db8bcf4014cb1953f0346fabaa36 Mon Sep 17 00:00:00 2001 From: talksik Date: Thu, 27 Apr 2023 14:59:24 -0700 Subject: [PATCH] race conditions? --- push_to_record_and_play.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/push_to_record_and_play.py b/push_to_record_and_play.py index 12c9c34..3c088cc 100644 --- a/push_to_record_and_play.py +++ b/push_to_record_and_play.py @@ -2,6 +2,7 @@ # it will then play the audio back to the user from memory import RPi.GPIO as GPIO +import time # importing sys import sys @@ -26,3 +27,5 @@ while True: else: if not audioInstance.isRecording(): audioInstance.startRecord() + + time.sleep(1)