mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 13:20:50 +00:00
example: fix warnings
This commit is contained in:
parent
4d0a5c2873
commit
555f545d84
@ -52,6 +52,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include "btstack.h"
|
#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);
|
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);
|
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("Manufacturer ID: 0x%02x%08" PRIx32 "\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("Organizationally Unique ID: 0x%06" PRIx32 "\n", gattservice_subevent_device_information_system_id_get_organizationally_unique_id(packet));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -171,6 +171,7 @@ static void send_report(uint8_t buttons, int8_t dx, int8_t dy){
|
|||||||
switch (protocol_mode){
|
switch (protocol_mode){
|
||||||
case 0:
|
case 0:
|
||||||
hids_device_send_boot_mouse_input_report(con_handle, report, sizeof(report));
|
hids_device_send_boot_mouse_input_report(con_handle, report, sizeof(report));
|
||||||
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
hids_device_send_input_report(con_handle, report, sizeof(report));
|
hids_device_send_input_report(con_handle, report, sizeof(report));
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user