From 555f545d840108823cf89837334fbee67e701bb5 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 11 Jan 2023 17:04:46 +0100 Subject: [PATCH] example: fix warnings --- example/gatt_device_information_query.c | 5 +++-- example/hog_mouse_demo.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/example/gatt_device_information_query.c b/example/gatt_device_information_query.c index 15f23d980..ee6457d14 100644 --- a/example/gatt_device_information_query.c +++ b/example/gatt_device_information_query.c @@ -52,6 +52,7 @@ #include #include #include +#include #include "btstack.h" @@ -338,8 +339,8 @@ static void gatt_client_event_handler(uint8_t packet_type, uint16_t channel, uin uint32_t manufacturer_identifier_low = gattservice_subevent_device_information_system_id_get_manufacturer_id_low(packet); uint8_t manufacturer_identifier_high = gattservice_subevent_device_information_system_id_get_manufacturer_id_high(packet); - printf("Manufacturer ID: 0x%02x%08x\n", manufacturer_identifier_high, manufacturer_identifier_low); - printf("Organizationally Unique ID: 0x%06x\n", gattservice_subevent_device_information_system_id_get_organizationally_unique_id(packet)); + printf("Manufacturer ID: 0x%02x%08" PRIx32 "\n", manufacturer_identifier_high, manufacturer_identifier_low); + printf("Organizationally Unique ID: 0x%06" PRIx32 "\n", gattservice_subevent_device_information_system_id_get_organizationally_unique_id(packet)); } break; diff --git a/example/hog_mouse_demo.c b/example/hog_mouse_demo.c index 77a1fa19f..1e1b5b69c 100644 --- a/example/hog_mouse_demo.c +++ b/example/hog_mouse_demo.c @@ -171,6 +171,7 @@ static void send_report(uint8_t buttons, int8_t dx, int8_t dy){ switch (protocol_mode){ case 0: hids_device_send_boot_mouse_input_report(con_handle, report, sizeof(report)); + break; case 1: hids_device_send_input_report(con_handle, report, sizeof(report)); break;