Bugfixes...

This commit is contained in:
jpunkt 2021-11-04 14:35:15 +01:00
parent 900777c874
commit 4555d1ad89

View file

@ -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