8000 ensure all fields of pio_sm_config are initialized correctly · adafruit/circuitpython@a0a86f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0a86f8

Browse files
committed
ensure all fields of pio_sm_config are initialized correctly
1 parent 2b396f2 commit a0a86f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/raspberrypi/common-hal/rp2pio/StateMachine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ bool rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self,
395395
gpio_set_drive_strength(pin_number, GPIO_DRIVE_STRENGTH_2MA);
396396
}
397397

398-
pio_sm_config c = {0, 0, 0};
398+
pio_sm_config c = pio_get_default_sm_config();
399399

400400
if (frequency == 0) {
401401
frequency = clock_get_hz(clk_sys);

0 commit comments

Comments
 (0)
0