This is an automated email from the ASF dual-hosted git repository. ccollins pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit f6f145b5d20a0f7af454c8a3e2ce3e386ad24020 Author: Christopher Collins <ccoll...@apache.org> AuthorDate: Fri May 10 18:59:30 2019 -0700 hw/battery: Fix shell command definitions A recent change to the `struct shell_cmd` type is incompatible with how `hw/battery` defines its shell command. Some extra fields were added to this struct, and the battery shell command was defined with positional values. --- hw/battery/src/battery_shell.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/battery/src/battery_shell.c b/hw/battery/src/battery_shell.c index c5b6db8..33243d6 100644 --- a/hw/battery/src/battery_shell.c +++ b/hw/battery/src/battery_shell.c @@ -476,12 +476,12 @@ err: static const struct shell_cmd bat_cli_commands[] = { - { "read", cmd_bat_read, HELP(bat_read_help) }, - { "write", cmd_bat_write, HELP(bat_write_help) }, - { "list", cmd_bat_list, HELP(bat_list_help) }, - { "pollrate", cmd_bat_poll_rate, HELP(bat_poll_rate_help) }, - { "monitor", cmd_bat_monitor, HELP(bat_monitor_help) }, - { NULL, NULL, NULL } + SHELL_CMD("read", cmd_bat_read, &bat_read_help), + SHELL_CMD("write", cmd_bat_write, &bat_write_help), + SHELL_CMD("list", cmd_bat_list, &bat_list_help), + SHELL_CMD("pollrate", cmd_bat_poll_rate, &bat_poll_rate_help), + SHELL_CMD("monitor", cmd_bat_monitor, &bat_monitor_help), + { 0 }, }; /**