example: fix warnings

This commit is contained in:
Matthias Ringwald 2022-05-23 15:07:23 +02:00
parent db2353e526
commit 9d0104069f
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ typedef struct {
uint16_t sbc_storage_count;
uint8_t sbc_ready_to_send;
uint16_t volume;
uint8_t volume;
} a2dp_media_sending_context_t;
static uint8_t media_sbc_codec_capabilities[] = {

View File

@ -161,7 +161,7 @@ static void hid_host_setup(void){
hci_add_event_handler(&hci_event_callback_registration);
// Disable stdout buffering
setbuf(stdout, NULL);
setvbuf(stdin, NULL, _IONBF, 0);
}
/* LISTING_END */
@ -215,7 +215,7 @@ static void hid_host_handle_interrupt_report(const uint8_t * report, uint16_t re
if (usage >= sizeof(keytable_us_none)) continue;
// store new keys
new_keys[new_keys_count++] = usage;
new_keys[new_keys_count++] = (uint8_t) usage;
// check if usage was used last time (and ignore in that case)
int i;