Skip to content

Commit 6d692c9

Browse files
Mik3Rizzopelwell
authored andcommitted
Adjust port number range to 0-98
1 parent 3d11f9c commit 6d692c9

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/.../255 : Only look for CMs attached to USB port number 0-255\n");
87+
fprintf(dest, " -0/1/2/.../98 : Only look for CMs attached to USB port number 0-98\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] : Write metadata JSON object to a file at the given path (BCM2712/2711)\n");
@@ -559,7 +559,7 @@ void get_options(int argc, char *argv[])
559559
{
560560
char *endptr;
561561
long port = strtol(*argv + 1, &endptr, 10);
562-
if (*endptr == '\0' && port >= 0 && port <= 255) {
562+
if (*endptr == '\0' && port >= 0 && port <= 98) {
563563
targetPortNo = (uint8_t)port;
564564
} else {
565565
usage(1);

0 commit comments

Comments
 (0)