We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84e48c4 commit 00b8a25Copy full SHA for 00b8a25
examples/hello_analog_microphone/main.c
@@ -68,6 +68,9 @@ int main( void )
68
}
69
70
while (1) {
71
+ // wait for new samples
72
+ while (samples_read == 0) { tight_loop_contents(); }
73
+
74
// store and clear the samples read from the callback
75
int sample_count = samples_read;
76
samples_read = 0;
examples/hello_pdm_microphone/main.c
@@ -74,7 +74,10 @@ int main( void )
77
- // store and clear the samples read from the callback
78
79
80
+ // store and clear the samples read from the callback
81
82
83
0 commit comments