gatt_client: add missing {} to error handing with ENABLE_GATT_CLIENT_PAIRING

This commit is contained in:
Matthias Ringwald 2019-09-19 14:34:47 +02:00
parent 9ccd94f81e
commit a0e0c2be34

View File

@ -1504,7 +1504,8 @@ static void gatt_client_att_packet_handler(uint8_t packet_type, uint16_t handle,
case ATT_ERROR_INSUFFICIENT_AUTHENTICATION:
case ATT_ERROR_INSUFFICIENT_ENCRYPTION_KEY_SIZE:
case ATT_ERROR_INSUFFICIENT_ENCRYPTION:
case ATT_ERROR_INSUFFICIENT_ENCRYPTION: {
// security too low
if (peripheral->security_counter > 0) {
gatt_client_report_error_if_pending(peripheral, packet[4]);
@ -1590,6 +1591,7 @@ static void gatt_client_att_packet_handler(uint8_t packet_type, uint16_t handle,
peripheral->pending_error_code = packet[4];
sm_request_pairing(peripheral->con_handle);
break;
}
#endif
// nothing we can do about that