Update light.c
Dummy error :)
This commit is contained in:
parent
9457917ae4
commit
79e3060871
1 changed files with 1 additions and 1 deletions
2
light.c
2
light.c
|
@ -39,7 +39,7 @@ int main(int argc, char* argv[])
|
|||
percent -= atoi(++arg);
|
||||
else
|
||||
percent = atoi(arg);
|
||||
new_brightness = ceil((float) percent * 255 / 100);
|
||||
new_brightness = ceil((float) percent * max_brightness / 100);
|
||||
}
|
||||
else {
|
||||
if (arg[0] == '+')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue