Skip to content

Commit 4bd7f8c

Browse files
committed
BLE: fix code indentation
1 parent f116604 commit 4bd7f8c

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

connectivity/FEATURE_BLE/source/cordio/source/BLEInstanceBaseImpl.cpp

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -370,21 +370,20 @@ void BLEInstanceBase::stack_handler(wsfEventMask_t event, wsfMsgHdr_t *msg)
370370
} break;
371371

372372
#if MBED_CONF_CORDIO_ROUTE_UNHANDLED_COMMAND_COMPLETE_EVENTS
373-
case DM_UNHANDLED_CMD_CMPL_EVT_IND: {
374-
// upcast to unhandled command complete event to access the payload
375-
hciUnhandledCmdCmplEvt_t *unhandled = (hciUnhandledCmdCmplEvt_t *) msg;
376-
if (unhandled->hdr.status == HCI_SUCCESS && unhandled->hdr.param == HCI_OPCODE_LE_TEST_END) {
377-
// unhandled events are not parsed so we need to parse the payload ourselves
378-
uint8_t status;
379-
uint16_t packet_number;
380-
status = unhandled->param[0];
381-
BYTES_TO_UINT16(packet_number, unhandled->param + 1);
382-
383-
_hci_driver->handle_test_end(status == 0, packet_number);
384-
return;
385-
}
373+
case DM_UNHANDLED_CMD_CMPL_EVT_IND: {
374+
// upcast to unhandled command complete event to access the payload
375+
hciUnhandledCmdCmplEvt_t *unhandled = (hciUnhandledCmdCmplEvt_t *) msg;
376+
if (unhandled->hdr.status == HCI_SUCCESS && unhandled->hdr.param == HCI_OPCODE_LE_TEST_END) {
377+
// unhandled events are not parsed so we need to parse the payload ourselves
378+
uint8_t status;
379+
uint16_t packet_number;
380+
status = unhandled->param[0];
381+
BYTES_TO_UINT16(packet_number, unhandled->param + 1);
382+
383+
_hci_driver->handle_test_end(status == 0, packet_number);
384+
return;
386385
}
387-
break;
386+
} break;
388387
#endif // MBED_CONF_CORDIO_ROUTE_UNHANDLED_COMMAND_COMPLETE_EVENTS
389388

390389
default:

0 commit comments

Comments
 (0)