Skip to content

Commit

Permalink
Update pio-usb patch
Browse files Browse the repository at this point in the history
Fixed uninitialized usage of local variables in init_host_programs().

Signed-off-by: Tzvetomir Stoyanov <[email protected]>
  • Loading branch information
tzstoyanov committed Jan 25, 2024
1 parent ba43c1a commit 210b7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/pio-usb-hw-auto-discovery.patch
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ index 7554c0d..7ff8770 100644
+static bool init_host_programs(
+ pio_port_t *pp, const pio_usb_configuration_t *c, root_port_t *port,
+ uint *tx_inst_count, uint *rx_inst_count) {
+ bool pio_rx_auto, pio_tx_auto;
+ bool pio_rx_auto = false, pio_tx_auto = false;
+
+ if (!pp->pio_usb_tx) {
+ pio_tx_auto = true;
Expand Down

0 comments on commit 210b7e4

Please sign in to comment.