From 8dc05cdba35063e5a9218fa71488c13b008cb4c9 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 25 Nov 2025 23:33:34 +0000 Subject: [PATCH] rp2/main: Add guard around machine_i2s_init0(). Add a #if MICROPY_PY_MACHINE_I2S guard around the call to machine_i2s_init0() in ports/rp2/main.c. This matches the existing guard around machine_i2s_deinit_all() in the same function. Signed-off-by: David Lechner --- ports/rp2/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/rp2/main.c b/ports/rp2/main.c index f01522f243..50946b0a5c 100644 --- a/ports/rp2/main.c +++ b/ports/rp2/main.c @@ -192,7 +192,9 @@ int main(int argc, char **argv) { machine_pin_init(); rp2_pio_init(); rp2_dma_init(); + #if MICROPY_PY_MACHINE_I2S machine_i2s_init0(); + #endif #if MICROPY_PY_BLUETOOTH mp_bluetooth_hci_init();