diff --git a/apps/btshell/src/cmd.c b/apps/btshell/src/cmd.c index c39d0d10bd..7b3c9346c4 100644 --- a/apps/btshell/src/cmd.c +++ b/apps/btshell/src/cmd.c @@ -4152,13 +4152,13 @@ static const struct shell_param sync_transfer_receive_params[] = { {"reports_disabled", "disable reports, usage: =[0-1], default: 0"}, {NULL, NULL} }; -#endif static const struct shell_cmd_help sync_transfer_receive_help = { .summary = "start/stop periodic sync reception with specific parameters", .usage = NULL, .params = sync_transfer_receive_params, }; +#endif /* SHELL_CMD_HELP */ #endif static int diff --git a/apps/btshell/src/cmd_leaudio.c b/apps/btshell/src/cmd_leaudio.c index 60b448b548..6f1f72969f 100644 --- a/apps/btshell/src/cmd_leaudio.c +++ b/apps/btshell/src/cmd_leaudio.c @@ -501,20 +501,19 @@ broadcast_sink_action_fn(struct ble_audio_broadcast_sink_action *action, void *a return 0; } - +#if MYNEWT_VAL(SHELL_CMD_HELP) static const struct shell_param cmd_leaudio_broadcast_sink_start_params[] = { {"source_id", "usage: ="}, {"broadcast_code", "usage: =[string], default: NULL"}, {NULL, NULL} }; -#if MYNEWT_VAL(SHELL_CMD_HELP) const struct shell_cmd_help cmd_leaudio_broadcast_sink_start_help = { .summary = "Start audio Broadcast Sink", .usage = NULL, .params = cmd_leaudio_broadcast_sink_start_params }; -#endif +#endif /* SHELL_CMD_HELP */ int cmd_leaudio_broadcast_sink_start(int argc, char **argv) @@ -549,18 +548,18 @@ cmd_leaudio_broadcast_sink_start(int argc, char **argv) return rc; } +#if MYNEWT_VAL(SHELL_CMD_HELP) static const struct shell_param cmd_leaudio_broadcast_sink_stop_params[] = { {"source_id", "usage: ="}, {NULL, NULL} }; -#if MYNEWT_VAL(SHELL_CMD_HELP) const struct shell_cmd_help cmd_leaudio_broadcast_sink_stop_help = { .summary = "Stop audio Broadcast Sink", .usage = NULL, .params = cmd_leaudio_broadcast_sink_stop_params }; -#endif +#endif /* SHELL_CMD_HELP */ int cmd_leaudio_broadcast_sink_stop(int argc, char **argv) @@ -587,6 +586,7 @@ cmd_leaudio_broadcast_sink_stop(int argc, char **argv) return rc; } +#if MYNEWT_VAL(SHELL_CMD_HELP) static const struct shell_param cmd_leaudio_broadcast_sink_metadata_update_params[] = { {"source_id", "usage: ="}, {"subgroup_index", "usage: ="}, @@ -594,13 +594,12 @@ static const struct shell_param cmd_leaudio_broadcast_sink_metadata_update_param {NULL, NULL} }; -#if MYNEWT_VAL(SHELL_CMD_HELP) const struct shell_cmd_help cmd_leaudio_broadcast_sink_metadata_update_help = { .summary = "Update Broadcast Sink metadata", .usage = NULL, .params = cmd_leaudio_broadcast_sink_metadata_update_params }; -#endif +#endif /* SHELL_CMD_HELP */ int cmd_leaudio_broadcast_sink_metadata_update(int argc, char **argv) @@ -778,6 +777,7 @@ scan_delegator_action_fn(struct ble_audio_scan_delegator_action *action, void *a return 0; } +#if MYNEWT_VAL(SHELL_CMD_HELP) static const struct shell_param cmd_leaudio_scan_delegator_receive_state_add_params[] = { {"addr_type", "usage: =[public|random], default: public"}, {"addr", "usage: =[XX:XX:XX:XX:XX:XX]"}, @@ -786,7 +786,6 @@ static const struct shell_param cmd_leaudio_scan_delegator_receive_state_add_par {NULL, NULL} }; -#if MYNEWT_VAL(SHELL_CMD_HELP) const struct shell_cmd_help cmd_leaudio_scan_delegator_receive_state_add_help = { .summary = "Add receive state", .usage = NULL, @@ -834,12 +833,12 @@ cmd_leaudio_scan_delegator_receive_state_add(int argc, char **argv) return rc; } +#if MYNEWT_VAL(SHELL_CMD_HELP) static const struct shell_param cmd_leaudio_scan_delegator_receive_state_remove_params[] = { {"source_id", "usage: ="}, {NULL, NULL} }; -#if MYNEWT_VAL(SHELL_CMD_HELP) const struct shell_cmd_help cmd_leaudio_scan_delegator_receive_state_remove_help = { .summary = "Remove receive state", .usage = NULL, @@ -889,17 +888,15 @@ const struct parse_arg_kv_pair cmd_big_enc_type[] = { { NULL } }; +#if MYNEWT_VAL(SHELL_CMD_HELP) static const struct shell_param cmd_leaudio_scan_delegator_receive_state_set_params[] = { {"source_id", "usage: ="}, - {"pa_sync_state", "usage: =[not_synced|sync_info_req|synced|failed|no_past]," - " default: not_synced"}, - {"big_enc", "usage: =[not_encrypted|code_req|decrypting|bad_code]," - " default: not_encrypted"}, + {"pa_sync_state", "usage: =[not_synced|sync_info_req|synced|failed|no_past], default: not_synced"}, + {"big_enc", "usage: =[not_encrypted|code_req|decrypting|bad_code], default: not_encrypted"}, {"bad_code", "usage: =[string], default: NULL"}, {NULL, NULL} }; -#if MYNEWT_VAL(SHELL_CMD_HELP) const struct shell_cmd_help cmd_leaudio_scan_delegator_receive_state_set_help = { .summary = "Set receive state", .usage = NULL, @@ -1001,12 +998,12 @@ scan_delegator_receive_state_printf(const struct ble_audio_scan_delegator_receiv } } +#if MYNEWT_VAL(SHELL_CMD_HELP) static const struct shell_param cmd_leaudio_scan_delegator_receive_state_get_params[] = { {"source_id", "usage: ="}, {NULL, NULL} }; -#if MYNEWT_VAL(SHELL_CMD_HELP) const struct shell_cmd_help cmd_leaudio_scan_delegator_receive_state_get_help = { .summary = "Get receive state", .usage = NULL,