Merge pull request #82 from kolodgrz/mesh_shell_v1

mesh: shell: Rename init function to avoid redefinition
This commit is contained in:
Łukasz Rymanowski
2018-05-09 17:26:44 +02:00
committed by GitHub
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ void bt_test_cb_unregister(struct bt_test_cb *cb);
u8_t mod_bind(struct bt_mesh_model *model, u16_t key_idx);
u8_t mod_unbind(struct bt_mesh_model *model, u16_t key_idx);
int cmd_init(int argc, char *argv[]);
int cmd_mesh_init(int argc, char *argv[]);
int bt_test_shell_init(void);
int bt_test_bind_app_key_to_model(struct bt_mesh_model *model, u16_t key_idx, u16_t id);
+2 -2
View File
@@ -633,7 +633,7 @@ static int check_pub_addr_unassigned(void)
#endif
}
int cmd_init(int argc, char *argv[])
int cmd_mesh_init(int argc, char *argv[])
{
int err;
ble_addr_t addr;
@@ -2374,7 +2374,7 @@ static int cmd_print_composition_data(int argc, char *argv[])
}
static const struct shell_cmd mesh_commands[] = {
{ "init", cmd_init, NULL },
{ "init", cmd_mesh_init, NULL },
#if MYNEWT_VAL(BLE_MESH_PB_ADV)
{ "pb-adv", cmd_pb_adv, &cmd_pb_help },
#endif
+1 -1
View File
@@ -157,7 +157,7 @@ void bt_test_print_credentials(void)
int bt_test_shell_init(void)
{
return cmd_init(0, NULL);
return cmd_mesh_init(0, NULL);
}
int bt_test_bind_app_key_to_model(struct bt_mesh_model *model, u16_t key_idx, u16_t id)