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:
parent
bfacf821f4
commit
8dc05cdba3
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user