Skip to content

Commit 04e8d7d

Browse files
tomaszkob89rlubos
authored andcommitted
samples: log_rpc_shell: print history usage thr
Added a shell print statement to display the current history usage threshold after it is set in the log_rpc_history_threshold command. The change is required for test purposes. Signed-off-by: Tomasz Kobylarz <[email protected]>
1 parent f0b6a90 commit 04e8d7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/nrf_rpc/protocols_serialization/client/src/log_rpc_shell.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ static int cmd_log_rpc_history_threshold(const struct shell *sh, size_t argc, ch
141141

142142
shell = sh;
143143
log_rpc_set_history_usage_threshold(history_threshold_reached_handler, (uint8_t)threshold);
144+
shell_print(sh, "%u", log_rpc_get_history_usage_threshold());
144145

145146
return 0;
146147
}

0 commit comments

Comments
 (0)