better ordering
This commit is contained in:
@@ -40,9 +40,9 @@ while True:
|
||||
|
||||
if state:
|
||||
if audioInstance.isRecording():
|
||||
audioInstance.stopRecord()
|
||||
turnOffLED()
|
||||
audioInstance.stopRecord()
|
||||
else:
|
||||
if not audioInstance.isRecording():
|
||||
audioInstance.startRecord()
|
||||
turnOnLED()
|
||||
audioInstance.startRecord()
|
||||
|
||||
Reference in New Issue
Block a user