diff --git a/ports/raspberrypi/common-hal/rp2pio/StateMachine.c b/ports/raspberrypi/common-hal/rp2pio/StateMachine.c index 05c8f76b8c82..2d5baeab4d66 100644 --- a/ports/raspberrypi/common-hal/rp2pio/StateMachine.c +++ b/ports/raspberrypi/common-hal/rp2pio/StateMachine.c @@ -395,7 +395,7 @@ bool rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self, gpio_set_drive_strength(pin_number, GPIO_DRIVE_STRENGTH_2MA); } - pio_sm_config c = {0, 0, 0}; + pio_sm_config c = pio_get_default_sm_config(); if (frequency == 0) { frequency = clock_get_hz(clk_sys);