Skip to content

Commit 2f70b75

Browse files
committed
codal_port/microbit_pinaudio: Deselect audio pin when freeing it.
1 parent 44a75bb commit 2f70b75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/codal_port/microbit_pinaudio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,6 @@ void microbit_pin_audio_free(void) {
121121
if (audio_routed_pin != NULL) {
122122
microbit_obj_pin_free(audio_routed_pin);
123123
audio_routed_pin = NULL;
124+
microbit_hal_audio_select_pin(-1);
124125
}
125126
}

0 commit comments

Comments
 (0)