Correct timeouts and remove broken brightness command
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
0a85530624
commit
8cf3221944
4 changed files with 88 additions and 47 deletions
|
@ -56,7 +56,7 @@ int main(int argc, const char** argv) {
|
|||
device3_clear(dev3);
|
||||
|
||||
while (dev3) {
|
||||
if (device3_read(dev3, 0) < 0) {
|
||||
if (device3_read(dev3, -1) < 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ int main(int argc, const char** argv) {
|
|||
device4_clear(dev4);
|
||||
|
||||
while (dev4) {
|
||||
if (device4_read(dev4, 0) < 0) {
|
||||
if (device4_read(dev4, 1000) < 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue