We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3fc1bf commit 70da67eCopy full SHA for 70da67e
1 file changed
src/drivers/io/io.cpp
@@ -183,6 +183,9 @@ void tick_enable(bool enable) {
183
} else {
184
led_tick = false;
185
speaker_tick = false;
186
+ // Ensure outputs are quiet when disabled
187
+ speakerOff();
188
+ digitalWrite(LED_BUILTIN, LOW);
189
}
190
191
@@ -227,6 +230,8 @@ void setup_speaker(bool _led_tick, bool _speaker_tick) {
227
230
mcpwm_init(MCPWM_UNIT_0, MCPWM_TIMER_0, &pwm_config);
228
231
229
232
tick_enable(false); // no ticking while we init audio
233
234
235
236
if (!audio_command_queue) {
237
audio_command_queue = xQueueCreate(8, sizeof(AudioCommand));
0 commit comments