race conditions?

This commit is contained in:
talksik
2023-04-27 14:59:24 -07:00
parent fecd27bdce
commit 8aede99fae
+3
View File
@@ -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)