Bugfixes...
This commit is contained in:
parent
900777c874
commit
4555d1ad89
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ def record_sound(hal: PizzaHAL, filename: Any, duration: int,
|
||||||
samplerate=AUDIO_REC_SR,
|
samplerate=AUDIO_REC_SR,
|
||||||
channels=2)
|
channels=2)
|
||||||
resp = hal.send_cmd(SerialCommands.RECORD, duration).strip()
|
resp = hal.send_cmd(SerialCommands.RECORD, duration).strip()
|
||||||
if resp == 'I':
|
if resp == b'I':
|
||||||
sd.stop()
|
sd.stop()
|
||||||
else:
|
else:
|
||||||
sd.wait() # Wait until recording is finished
|
sd.wait() # Wait until recording is finished
|
||||||
|
|
Loading…
Reference in a new issue