diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2016-01-27 16:39:13 +0200 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2016-02-05 20:25:27 -0500 |
commit | e4777eca2cf3869d88990baf1a6cecc2aa3750b1 (patch) | |
tree | b0677d47b8eb550800fff06cc8bea2b825810e94 /samples | |
parent | 06d9e61dd649dab0dc9471346123ebf8b318c2cb (diff) |
Bluetooth: shell: Make buf_data local
Move buf_data to the place it is used reducing errors when dynamic
channels are disabled.
Change-Id: I82f640ffa8046e1c9b5805658e69cb722856d445
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/bluetooth/shell/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bluetooth/shell/src/main.c b/samples/bluetooth/shell/src/main.c index 3bfdd7ae5..8139dbbba 100644 --- a/samples/bluetooth/shell/src/main.c +++ b/samples/bluetooth/shell/src/main.c @@ -51,7 +51,6 @@ static struct bt_conn *pairing_conn; static struct nano_fifo data_fifo; static NET_BUF_POOL(data_pool, 1, DATA_MTU, &data_fifo, NULL, 0); -static uint8_t buf_data[DATA_MTU] = { [0 ... (DATA_MTU - 1)] = 0xff }; static const char *current_prompt(void) { @@ -1375,6 +1374,7 @@ static void cmd_l2cap_disconnect(int argc, char *argv[]) static void cmd_l2cap_send(int argc, char *argv[]) { + static uint8_t buf_data[DATA_MTU] = { [0 ... (DATA_MTU - 1)] = 0xff }; int err, len, count = 1; struct net_buf *buf; |