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 <david@pybricks.com>
This commit is contained in:
David Lechner 2025-11-25 23:33:34 +00:00 committed by Damien George
parent bfacf821f4
commit 8dc05cdba3

View File

@ -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();