mesh: fix debug output of attention timer

This commit is contained in:
Matthias Ringwald 2019-07-16 11:16:11 +02:00
parent f2229d0ea7
commit 8451e447c1
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ static void mesh_provisioning_message_handler (uint8_t packet_type, uint16_t cha
printf("Provisioner link close");
break;
case MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER:
printf("Attention Timer: %u\n", packet[3]);
printf("Attention Timer: %u\n", mesh_subevent_pb_prov_attention_timer_get_attention_time(packet));
break;
case MESH_SUBEVENT_PB_PROV_COMPLETE:
printf("Provisioning complete\n");

View File

@ -149,7 +149,7 @@ static void mesh_provisioning_message_handler (uint8_t packet_type, uint16_t cha
printf("Provisioner link close");
break;
case MESH_SUBEVENT_PB_PROV_ATTENTION_TIMER:
printf("Attention Timer: %u\n", packet[3]);
printf("Attention Timer: %u\n", mesh_subevent_pb_prov_attention_timer_get_attention_time(packet));
break;
case MESH_SUBEVENT_PB_PROV_INPUT_OOB_REQUEST:
printf("Enter passphrase: ");