clean up warning
This commit is contained in:
1 parent
a95ead5add
commit
a14c2c247e
2 files changed
+8
-7
No files matched your search
@@ -106,6 +106,7 @@ static void bluefruit_blinky_cb( TimerHandle_t xTimer )
|
||||
|
||||
static void nrf_error_cb(uint32_t id, uint32_t pc, uint32_t info)
|
||||
{
|
||||
#if CFG_DEBUG
|
||||
PRINT_INT(id);
|
||||
PRINT_HEX(pc);
|
||||
PRINT_HEX(info);
|
||||
@@ -123,7 +124,6 @@ static void nrf_error_cb(uint32_t id, uint32_t pc, uint32_t info)
|
||||
LOG_LV1("SD Err", "assert at %s : %d", assert_info->p_file_name, assert_info->line_num);
|
||||
}
|
||||
|
||||
#if CFG_DEBUG
|
||||
while(1) { }
|
||||
#endif
|
||||
}
|
||||
@@ -865,6 +865,8 @@ void AdafruitBluefruit::_ble_handler(ble_evt_t* evt)
|
||||
case BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST:
|
||||
{
|
||||
ble_gap_data_length_params_t* param = &evt->evt.gap_evt.params.data_length_update_request.peer_params;
|
||||
(void) param;
|
||||
|
||||
LOG_LV2("GAP", "Data Length Req is (tx, rx) octets = (%d, %d), (tx, rx) time = (%d, %d) us",
|
||||
param->max_tx_octets, param->max_rx_octets, param->max_tx_time_us, param->max_rx_time_us);
|
||||
|
||||
@@ -876,6 +878,8 @@ void AdafruitBluefruit::_ble_handler(ble_evt_t* evt)
|
||||
case BLE_GAP_EVT_DATA_LENGTH_UPDATE:
|
||||
{
|
||||
ble_gap_data_length_params_t* datalen = &evt->evt.gap_evt.params.data_length_update.effective_params;
|
||||
(void) datalen;
|
||||
|
||||
LOG_LV2("GAP", "Data Length is (tx, rx) octets = (%d, %d), (tx, rx) time = (%d, %d) us",
|
||||
datalen->max_tx_octets, datalen->max_rx_octets, datalen->max_tx_time_us, datalen->max_rx_time_us);
|
||||
}
|
||||
@@ -883,9 +887,8 @@ void AdafruitBluefruit::_ble_handler(ble_evt_t* evt)
|
||||
|
||||
case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
|
||||
{
|
||||
ble_gap_phys_t* req_phy = &evt->evt.gap_evt.params.phy_update_request.peer_preferred_phys;
|
||||
|
||||
#if CFG_DEBUG >= 1
|
||||
ble_gap_phys_t* req_phy = &evt->evt.gap_evt.params.phy_update_request.peer_preferred_phys;
|
||||
char const *phy_str[] = { "Auto", "1 Mbps", "2 Mbps", "Coded" };
|
||||
LOG_LV1("GAP", "PHY request tx: %s, rx: %s", phy_str[req_phy->tx_phys], phy_str[req_phy->rx_phys]);
|
||||
#endif
|
||||
@@ -900,7 +903,6 @@ void AdafruitBluefruit::_ble_handler(ble_evt_t* evt)
|
||||
{
|
||||
ble_gap_evt_phy_update_t* active_phy = &evt->evt.gap_evt.params.phy_update;
|
||||
|
||||
#if CFG_DEBUG >= 1
|
||||
if ( active_phy->status != BLE_HCI_STATUS_CODE_SUCCESS )
|
||||
{
|
||||
LOG_LV1("GAP", "Failed HCI status = 0x%02X", active_phy->status);
|
||||
@@ -909,7 +911,6 @@ void AdafruitBluefruit::_ble_handler(ble_evt_t* evt)
|
||||
char const *phy_str[] = { "Auto", "1 Mbps", "2 Mbps", "Coded" };
|
||||
LOG_LV1("GAP", "PHY active tx: %s, rx: %s", phy_str[active_phy->tx_phy], phy_str[active_phy->rx_phy]);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -39,9 +39,9 @@
|
||||
BLEClientHidAdafruit::BLEClientHidAdafruit(void)
|
||||
: BLEClientService(UUID16_SVC_HUMAN_INTERFACE_DEVICE),
|
||||
_protcol_mode(UUID16_CHR_PROTOCOL_MODE),
|
||||
_hid_info(UUID16_CHR_HID_INFORMATION), _hid_control(UUID16_CHR_HID_CONTROL_POINT),
|
||||
_kbd_boot_input(UUID16_CHR_BOOT_KEYBOARD_INPUT_REPORT), _kbd_boot_output(UUID16_CHR_BOOT_KEYBOARD_OUTPUT_REPORT),
|
||||
_mse_boot_input(UUID16_CHR_BOOT_MOUSE_INPUT_REPORT),
|
||||
_hid_info(UUID16_CHR_HID_INFORMATION), _hid_control(UUID16_CHR_HID_CONTROL_POINT)
|
||||
_mse_boot_input(UUID16_CHR_BOOT_MOUSE_INPUT_REPORT)
|
||||
{
|
||||
_kbd_cb = NULL;
|
||||
_mse_cb = NULL;
|
||||
|
||||
Reference in new issue
Block a user