Minor change
This commit is contained in:
parent
e67754b878
commit
3bd772837c
@ -112,15 +112,16 @@ static int ble_gatt_mtu_cb(uint16_t conn_handle, const struct ble_gatt_error *er
|
|||||||
|
|
||||||
const char *ble_service_state_2_str(ble_service_state_e state)
|
const char *ble_service_state_2_str(ble_service_state_e state)
|
||||||
{
|
{
|
||||||
switch(state) {
|
switch(state)
|
||||||
CASE_RETURN_STR(BLE_SERVICE_MODE_STOPPED)
|
{
|
||||||
CASE_RETURN_STR(BLE_SERVICE_MODE_IDLE)
|
CASE_RETURN_STR(BLE_SERVICE_MODE_STOPPED)
|
||||||
CASE_RETURN_STR(BLE_SERVICE_MODE_ADVERTISING)
|
CASE_RETURN_STR(BLE_SERVICE_MODE_IDLE)
|
||||||
CASE_RETURN_STR(BLE_SERVICE_MODE_CONNECTED)
|
CASE_RETURN_STR(BLE_SERVICE_MODE_ADVERTISING)
|
||||||
CASE_RETURN_STR(BLE_SERVICE_MODE_INDICATING)
|
CASE_RETURN_STR(BLE_SERVICE_MODE_CONNECTED)
|
||||||
CASE_RETURN_STR(BLE_SERVICE_MODE_EXITING)
|
CASE_RETURN_STR(BLE_SERVICE_MODE_INDICATING)
|
||||||
|
CASE_RETURN_STR(BLE_SERVICE_MODE_EXITING)
|
||||||
default:
|
default:
|
||||||
return "unkown ble service state";
|
return "Unkown ble service state";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -785,4 +786,4 @@ static void reset_data_being_sent(data_being_sent_t * const data)
|
|||||||
{
|
{
|
||||||
memset(data, 0, sizeof(data_being_sent_t));
|
memset(data, 0, sizeof(data_being_sent_t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user