Bluetooth: shell: Fix compile warnings when CONFIG_DEBUG=y
Fixed uninitialised auto variables, that had caused compile errors under CONFIG_DEBUG=y. Jira: Zep-2334 Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
e8776f6b69
commit
ed85dea358
2 changed files with 4 additions and 4 deletions
|
@ -350,11 +350,11 @@ int cmd_gatt_write(int argc, char *argv[])
|
||||||
|
|
||||||
int cmd_gatt_write_without_rsp(int argc, char *argv[])
|
int cmd_gatt_write_without_rsp(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int err;
|
|
||||||
bool sign;
|
|
||||||
u16_t handle;
|
u16_t handle;
|
||||||
u16_t len;
|
|
||||||
u16_t repeat;
|
u16_t repeat;
|
||||||
|
int err = 0;
|
||||||
|
u16_t len;
|
||||||
|
bool sign;
|
||||||
|
|
||||||
if (!default_conn) {
|
if (!default_conn) {
|
||||||
printk("Not connected\n");
|
printk("Not connected\n");
|
||||||
|
|
|
@ -117,8 +117,8 @@ exit:
|
||||||
|
|
||||||
int cmd_scanx(int argc, char *argv[])
|
int cmd_scanx(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
u8_t type = 0;
|
||||||
u8_t enable;
|
u8_t enable;
|
||||||
u8_t type;
|
|
||||||
s32_t err;
|
s32_t err;
|
||||||
|
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue