Correct timeouts and remove broken brightness command

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2023-04-30 14:24:13 +02:00
parent 0a85530624
commit 8cf3221944
No known key found for this signature in database
GPG key ID: D850A5F772E880F9
4 changed files with 88 additions and 47 deletions

View file

@ -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;
}
}

View file

@ -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;
}
}