mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-22 09:49:57 +00:00
Merge pull request #82 from kolodgrz/mesh_shell_v1
mesh: shell: Rename init function to avoid redefinition
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user