Skip to content

Commit 2311a1c

Browse files
committed
Fixed displaying duplicate hubs in status output
This should fix issue #91.
1 parent 4661d89 commit 2311a1c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

uhubctl.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -793,9 +793,11 @@ int main(int argc, char *argv[])
793793
int k; /* k=0 for power OFF, k=1 for power ON */
794794
for (k=0; k<2; k++) { /* up to 2 power actions - off/on */
795795
if (k == 0 && opt_action == POWER_ON )
796-
continue;
796+
continue;
797797
if (k == 1 && opt_action == POWER_OFF)
798-
continue;
798+
continue;
799+
if (k == 1 && opt_action == POWER_KEEP)
800+
continue;
799801
int i;
800802
for (i=0; i<hub_count; i++) {
801803
if (hubs[i].actionable == 0)

0 commit comments

Comments
 (0)