Fix socket read stream crashes and NameError on boot

This commit is contained in:
Adolfo Reyna
2026-06-18 11:35:06 -04:00
parent 5968b4934d
commit d0fcc5fc7b
4 changed files with 208 additions and 110 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ class ES7210:
self.i2c.writeto_mem(self.ADDR, reg, bytes([val]))
def record_audio(duration_seconds=5, filename='recording.pcm'):
def record_audio(duration_seconds=10, filename='recording.pcm'):
"""Records raw stereo PCM data from the dual microphones to a file.
Args: