Skip to content

Commit 1bae99a

Browse files
committed
clean up
1 parent 6c7624f commit 1bae99a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/HID/hid_boot_keyboard/hid_boot_keyboard.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ uint8_t const desc_hid_report[] = {
2626

2727
// USB HID object. For ESP32 these values cannot be changed after this declaration
2828
// desc report, desc len, protocol, interval, use out endpoint
29-
Adafruit_USBD_HID usb_hid(desc_hid_report, sizeof(desc_hid_report), HID_ITF_PROTOCOL_KEYBOARD, 2, false);
29+
Adafruit_USBD_HID usb_hid;
3030

3131
//------------- Input Pins -------------//
3232
// Array of pins and its keycode.

examples/Video/video_capture/video_capture.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ void loop() {
159159
//--------------------------------------------------------------------+
160160
// TinyUSB Video Callbacks
161161
//--------------------------------------------------------------------+
162+
extern "C" {
163+
162164
void tud_video_frame_xfer_complete_cb(uint_fast8_t ctl_idx, uint_fast8_t stm_idx) {
163165
(void) ctl_idx;
164166
(void) stm_idx;
@@ -176,6 +178,8 @@ int tud_video_commit_cb(uint_fast8_t ctl_idx, uint_fast8_t stm_idx,
176178
return VIDEO_ERROR_NONE;
177179
}
178180

181+
} // extern C
182+
179183
//------------- Helper -------------//
180184
static void fill_color_bar(uint8_t* buffer, unsigned start_position) {
181185
/* EBU color bars

0 commit comments

Comments
 (0)