Skip to content

Commit

Permalink
Small fix.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Nov 9, 2021
1 parent 1d5ede6 commit 0a9137f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/modules/backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,9 @@ static void do_capture(bool reset_timer, bool capture_only) {
if (compensated_br >= conf.bl_conf.shutter_threshold) {
const double new_bl = set_new_backlight(compensated_br);
if (state.screen_comp > 0.0) {
INFO("Ambient brightness: %.3lf (-%.3lf screen compensation) -> Backlight pct: %.3lf.\n", state.ambient_br, state.screen_comp, new_bl);
INFO("Ambient brightness: %.3lf (-%.3lf screen compensation) -> Screen backlight pct: %.3lf.\n", state.ambient_br, state.screen_comp, new_bl);
} else {
INFO("Ambient brightness: %.3lf -> Backlight pct: %.3lf.\n", state.ambient_br, new_bl);
INFO("Ambient brightness: %.3lf -> Screen backlight pct: %.3lf.\n", state.ambient_br, new_bl);
}
} else if (state.screen_comp > 0.0) {
INFO("Ambient brightness: %.3lf (-%.3lf screen compensation) -> Clogged capture detected.\n", state.ambient_br, state.screen_comp);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static void receive(const msg_t *const msg, UNUSED const void* userdata) {
if (state.display_state & DISPLAY_DIMMED) {
state.display_state &= ~DISPLAY_DIMMED;
DEBUG("Leaving dimmed state...\n");
if (old_pct >= 0.0) {
if (msg->ps_msg->sender != self() && old_pct >= 0.0) {
publish_bl_req(old_pct, !conf.dim_conf.no_smooth[EXIT],
conf.dim_conf.trans_step[EXIT], conf.dim_conf.trans_timeout[EXIT]);
old_pct = -1.0;
Expand Down

0 comments on commit 0a9137f

Please sign in to comment.