Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Foerg <[email protected]>
  • Loading branch information
j-silv and faf0 authored Jun 26, 2024
1 parent ed68ba9 commit a955506
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ xsct 3700 0.9 && xsct

# Quirks

- If the delta mode is used to decrease the brightness to below 0.0 and then increased above 0.0, the temperature will reset to 6500K, regardless of whatever it was before the brightness reached 0. This is because the temperature is reset to 0K when the brightness is set equal to or below 0.0 (to verify this, you can run `xsct 0 0.0; xsct`).
If the delta mode is used to decrease the brightness to below 0.0 and then increased above 0.0, the temperature will reset to 6500 K, regardless of whatever it was before the brightness reached 0.
This is because the temperature is reset to 0 K when the brightness is set equal to or below 0.0 (to verify this, you can run `xsct 0 0.0; xsct`).

# Resources

Expand Down
2 changes: 1 addition & 1 deletion src/xsct.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static void bound_temp(struct temp_status *const temp)
if (temp->temp <= 0)
{
// identical behavior when xsct is called in absolute mode with temp == 0
fprintf(stderr, "WARNING! Temperatures below %d cannot be displayed.\n", TEMPERATURE_ZERO);
fprintf(stderr, "WARNING! Temperatures below %d cannot be displayed.\n", 0);
temp->temp = TEMPERATURE_NORM;
}
else if (temp->temp < TEMPERATURE_ZERO)
Expand Down

0 comments on commit a955506

Please sign in to comment.