From a0a86f88fd84c5264259f2b021002614f09d1459 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 8 Jan 2025 13:52:19 -0600 Subject: [PATCH] ensure all fields of pio_sm_config are initialized correctly --- ports/raspberrypi/common-hal/rp2pio/StateMachine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);