mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
scripts/libraries: Add missing return in microspeech.listen().
This commit is contained in:
parent
86c4f67fa2
commit
6b041409df
@ -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