also handle BLE_GATTS_EVT_SYS_ATTR_MISSING: fixes Android:

This commit is contained in:
Dan Halbert 2019-01-23 22:12:38 -05:00
parent b1f1bb1389
commit 7998a7696d

View File

@ -275,6 +275,10 @@ STATIC void peripheral_on_ble_evt(ble_evt_t *ble_evt, void *self_in) {
break; break;
} }
case BLE_GATTS_EVT_SYS_ATTR_MISSING:
sd_ble_gatts_sys_attr_set(self->conn_handle, NULL, 0, 0);
break;
default: default:
// For debugging. // For debugging.
// mp_printf(&mp_plat_print, "Unhandled peripheral event: 0x%04x\n", ble_evt->header.evt_id); // mp_printf(&mp_plat_print, "Unhandled peripheral event: 0x%04x\n", ble_evt->header.evt_id);