Fix flag to turn on and off

This commit is contained in:
Misha Bunte
2024-08-16 19:27:17 +02:00
committed by mvp
parent f22541cf64
commit 83ce372810

View File

@@ -1232,7 +1232,7 @@ int main(int argc, char *argv[])
int ports = ((1 << hubs[i].nports) - 1) & opt_ports;
int should_be_on = k;
if (opt_action == POWER_FLASH) {
k = !k;
should_be_on = !should_be_on;
}
int port;