diff --git a/example/embedded/spp_and_le_counter.c b/example/embedded/spp_and_le_counter.c index 2326b7cb7..26cc88975 100644 --- a/example/embedded/spp_and_le_counter.c +++ b/example/embedded/spp_and_le_counter.c @@ -50,7 +50,8 @@ #include #include #include - +#include + #include "btstack-config.h" #include @@ -173,7 +174,7 @@ static void packet_handler (void * connection, uint8_t packet_type, uint16_t cha case HCI_EVENT_USER_CONFIRMATION_REQUEST: // inform about user confirmation request - printf("SSP User Confirmation Request with numeric value '%06u'\n", READ_BT_32(packet, 8)); + printf("SSP User Confirmation Request with numeric value '%06"PRIu32"'\n", READ_BT_32(packet, 8)); printf("SSP User Confirmation Auto accept\n"); break;