Skip to content

Commit

Permalink
bugfix #75 : picotool load invalid bus parsing (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
XDeschuyteneer authored Mar 5, 2023
1 parent b7a1d9c commit 0cb4473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ std::shared_ptr<cmd> selected_cmd;

auto device_selection =
(
(option("--bus") & integer("bus").min_value(1).max_value(255).set(settings.bus)
(option("--bus") & integer("bus").min_value(0).max_value(255).set(settings.bus)
.if_missing([] { return "missing bus number"; })) % "Filter devices by USB bus number" +
(option("--address") & integer("addr").min_value(1).max_value(127).set(settings.address)
.if_missing([] { return "missing address"; })) % "Filter devices by USB device address"
Expand Down

0 comments on commit 0cb4473

Please sign in to comment.