Skip to content

Commit

Permalink
ensure all fields of pio_sm_config are initialized correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed Jan 8, 2025
1 parent 2b396f2 commit a0a86f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/raspberrypi/common-hal/rp2pio/StateMachine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a0a86f8

Please sign in to comment.