Skip to content

Commit 8dc05cd

Browse files
dlechdpgeorge
authored andcommitted
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>
1 parent bfacf82 commit 8dc05cd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ports/rp2/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ int main(int argc, char **argv) {
192192
machine_pin_init();
193193
rp2_pio_init();
194194
rp2_dma_init();
195+
#if MICROPY_PY_MACHINE_I2S
195196
machine_i2s_init0();
197+
#endif
196198

197199
#if MICROPY_PY_BLUETOOTH
198200
mp_bluetooth_hci_init();

0 commit comments

Comments
 (0)