different order
This commit is contained in:
@@ -12,10 +12,11 @@ GPIO.setup(BUTTON, GPIO.IN)
|
||||
audioInstance = audio.Audio()
|
||||
|
||||
while True:
|
||||
state = GPIO.input(BUTTON)
|
||||
if audioInstance.isRecording():
|
||||
audioInstance.readChunk()
|
||||
|
||||
state = GPIO.input(BUTTON)
|
||||
|
||||
if state:
|
||||
print("button: OFF")
|
||||
if audioInstance.isRecording():
|
||||
|
||||
Reference in New Issue
Block a user