Skip to content

Commit 6e38309

Browse files
committed
Increase handled port number up to 255
1 parent 5c020f3 commit 6e38309

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void usage(int error)
8484
fprintf(dest, " -v : Verbose\n");
8585
fprintf(dest, " -V : Displays the version string and exits\n");
8686
fprintf(dest, " -s : Signed using bootsig.bin\n");
87-
fprintf(dest, " -0/1/2/.../20 : Only look for CMs attached to USB port number 0-20\n");
87+
fprintf(dest, " -0/1/2/.../255 : Only look for CMs attached to USB port number 0-255\n");
8888
fprintf(dest, " -p [pathname] : Only look for CM with USB pathname\n");
8989
fprintf(dest, " -i [serialno] : Only look for a Raspberry Pi Device with a given serialno\n");
9090
fprintf(dest, " -j [path] : Enable output of metadata JSON files in a given directory for BCM2712/2711\n");
@@ -560,7 +560,7 @@ void get_options(int argc, char *argv[])
560560
{
561561
char *endptr;
562562
long port = strtol(*argv + 1, &endptr, 10);
563-
if (*endptr == '\0' && port >= 0 && port <= 20) {
563+
if (*endptr == '\0' && port >= 0 && port <= 255) {
564564
targetPortNo = (uint8_t)port;
565565
} else {
566566
usage(1);

0 commit comments

Comments
 (0)