remove some debugging prints

This commit is contained in:
Dan Halbert 2019-08-26 08:17:59 -04:00
parent 76446f634b
commit 0364f1dc85
2 changed files with 4 additions and 13 deletions

View File

@ -112,8 +112,11 @@ STATIC uint32_t ble_stack_enable(void) {
.conn_sup_timeout = BLE_CONN_SUP_TIMEOUT,
};
err_code = sd_ble_gap_ppcp_set(&gap_conn_params);
if (err_code != NRF_SUCCESS)
return err_code;
return err_code;
err_code = sd_ble_gap_appearance_set(BLE_APPEARANCE_UNKNOWN);
return err_code;
}
void common_hal_bleio_adapter_set_enabled(bool enabled) {

View File

@ -181,18 +181,6 @@ STATIC void peripheral_on_ble_evt(ble_evt_t *ble_evt, void *self_in) {
break;
}
// case BLE_GATTS_EVT_WRITE: {
// ble_gatts_evt_write_t* write = &ble_evt->evt.gatts_evt.params.write;
// mp_printf(&mp_plat_print, "GATTS write uuid %x\n", write->uuid.uuid);
// break;
// }
// case BLE_GATTS_EVT_HVN_TX_COMPLETE: {
// ble_gatts_evt_hvn_tx_complete_t* complete = &ble_evt->evt.gatts_evt.params.hvn_tx_complete;
// mp_printf(&mp_plat_print, "HVN TX COMPLETE finished write num %d\n", complete->count);
// break;
// }
case BLE_GAP_EVT_CONN_SEC_UPDATE: {
ble_gap_conn_sec_t* conn_sec = &ble_evt->evt.gap_evt.params.conn_sec_update.conn_sec;
if (conn_sec->sec_mode.sm <= 1 && conn_sec->sec_mode.lv <= 1) {