mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #2331 from kwagyeman/kwabena/fix_microspeech
scripts/libraries: Add missing return in microspeech.listen().
This commit is contained in:
commit
48fe3c1552
@ -84,4 +84,5 @@ class MicroSpeech:
|
|||||||
return (None, average_scores)
|
return (None, average_scores)
|
||||||
if timeout != 0 and (time.ticks_ms() - stat_ms) > timeout:
|
if timeout != 0 and (time.ticks_ms() - stat_ms) > timeout:
|
||||||
self.stop_audio_streaming()
|
self.stop_audio_streaming()
|
||||||
|
return (None, average_scores)
|
||||||
time.sleep_ms(1)
|
time.sleep_ms(1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user