TODOs
This commit is contained in:
parent
810a7e29b8
commit
2c1e78f723
2 changed files with 12 additions and 0 deletions
|
|
@ -55,6 +55,9 @@ int read_int(FILE *fp)
|
|||
return r;
|
||||
}
|
||||
|
||||
// TODO: add some command line options like:
|
||||
// -v: verbose/logging
|
||||
// -c file; specify a config file
|
||||
int main (void)
|
||||
{
|
||||
// open the luminance device
|
||||
|
|
@ -131,6 +134,7 @@ int main (void)
|
|||
}
|
||||
|
||||
brightness_adjusted = MIN(MAX(brightness_target + user_offset, min_brightness), max_brightness);
|
||||
// TODO: put this in write_int() function
|
||||
x = snprintf(STR_BUFFER, sizeof(STR_BUFFER), "%d", brightness_adjusted);
|
||||
if (x <= 0) {
|
||||
fprintf(stderr, "Error in snprintf(): %s\n", strerror(errno));
|
||||
|
|
@ -156,6 +160,7 @@ int main (void)
|
|||
user_offset = off;
|
||||
}
|
||||
|
||||
// TODO: option to turn off logging
|
||||
printf("brightness target: %d; user offset: %d; brightness adjusted: %d\n", brightness_target, user_offset, brightness_adjusted);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue