example/sm_pairing: improve console output

This commit is contained in:
Matthias Ringwald 2020-11-16 15:07:41 +01:00
parent e8edf5acf3
commit 39620ea5de
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ static void sm_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *pa
printf("Pairing failed, disconnected\n");
break;
case ERROR_CODE_AUTHENTICATION_FAILURE:
printf("Pairing failed, reason = %u\n", sm_event_pairing_complete_get_reason(packet));
printf("Pairing failed, authentication failure with reason = %u\n", sm_event_pairing_complete_get_reason(packet));
break;
default:
break;

View File

@ -220,7 +220,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
printf("Pairing failed, disconnected\n");
break;
case ERROR_CODE_AUTHENTICATION_FAILURE:
printf("Pairing failed, reason = %u\n", sm_event_pairing_complete_get_reason(packet));
printf("Pairing failed, authentication failure with reason = %u\n", sm_event_pairing_complete_get_reason(packet));
break;
default:
break;