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 <[email protected]>
1 parent bfacf82 commit 8dc05cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)