Commit c57910c
committed
codal_port/microbit_microphone: Make is_event use current event.
Instead of the last sound event in the history, which will stop working
when the history buffer gets full.
The semantics of microphone.is_event() now match
accelerometer.is_gesture().
Signed-off-by: Damien George <damien@micropython.org>1 parent a76e141 commit c57910c
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 120 | + | |
124 | 121 | | |
125 | 122 | | |
126 | 123 | | |
| |||
0 commit comments