Skip to content

Commit

Permalink
only register callback display_status_event_callback if debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rockowitz committed Jan 24, 2024
1 parent 76bf2e0 commit 418b380
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,8 @@ static bool init_ddcutil_library(Parsed_Ddcui_Cmd * parsed_cmd) {
// ddca_enable_udf( parsed_cmd->flags & CMD_FLAG_ENABLE_UDF);
}

if (ok) {
if (debug)
printf("(main.cpp:%s) Registering callback functions..\n", __func__);
if (ok && debug) {
printf("(main.cpp:%s) Registering callback functions..\n", __func__);
ddca_register_display_status_callback(display_status_event_callback);
}

Expand Down

0 comments on commit 418b380

Please sign in to comment.