summaryrefslogtreecommitdiff
path: root/examples/host/bare_api/src/main.c
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2024-05-07 12:32:28 +0200
committerGitHub <[email protected]>2024-05-07 12:32:28 +0200
commit4abdfc10f5a4cca19a614133655c64fec5752eb0 (patch)
treef79aa084a42438667b5e26b588a6f794c9ad1608 /examples/host/bare_api/src/main.c
parent798ff807b3361a5859945cb23c3d0fd7d1a5679f (diff)
parente5b6f93df35d7ac413ca405e67a6c9d8c79b680d (diff)
Merge branch 'master' into remove-tud_network_link_state_cb
Diffstat (limited to 'examples/host/bare_api/src/main.c')
-rw-r--r--examples/host/bare_api/src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/host/bare_api/src/main.c b/examples/host/bare_api/src/main.c
index 14725996d..670e58498 100644
--- a/examples/host/bare_api/src/main.c
+++ b/examples/host/bare_api/src/main.c
@@ -34,6 +34,7 @@
#include "bsp/board_api.h"
#include "tusb.h"
+#include "class/hid/hid.h"
// English
#define LANGUAGE_ID 0x0409
@@ -420,5 +421,5 @@ static void print_utf16(uint16_t *temp_buf, size_t buf_len) {
_convert_utf16le_to_utf8(temp_buf + 1, utf16_len, (uint8_t *) temp_buf, sizeof(uint16_t) * buf_len);
((uint8_t*) temp_buf)[utf8_len] = '\0';
- printf((char*)temp_buf);
+ printf("%s", (char*)temp_buf);
}