Skip to content

Commit b78102c

Browse files
committed
samples: dtm: Scope an invalid decl inside switch statement
The c standard doesn't allow doing this, so we should scope it. Signed-off-by: Rubin Gerritsen <[email protected]>
1 parent 6792f67 commit b78102c

File tree

1 file changed

+2
-1
lines changed
  • samples/bluetooth/direct_test_mode/src/transport

1 file changed

+2
-1
lines changed

samples/bluetooth/direct_test_mode/src/transport/dtm_hci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ static int hci_tx_test(uint16_t opcode, const uint8_t *data)
589589
break;
590590

591591
case BT_HCI_OP_LE_TX_TEST_V4:
592+
{
592593
struct bt_hci_cp_le_tx_test_v4_tx_power *tmp;
593594

594595
chan = params->v4.tx_ch;
@@ -605,7 +606,7 @@ static int hci_tx_test(uint16_t opcode, const uint8_t *data)
605606
" cte_len: %d, cte_type: %d, pattern_len: %d, power: %d.",
606607
chan, data_len, payload, phy, cte_len, cte_type, pattern_len, power);
607608
break;
608-
609+
}
609610
default:
610611
return -EINVAL;
611612
}

0 commit comments

Comments
 (0)