Skip to content

Commit 93072a4

Browse files
committed
clean up warnings
1 parent eaf09e1 commit 93072a4

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

examples/DualRole/device_info_rp2040/device_info_rp2040.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,10 @@ void print_device_descriptor(tuh_xfer_t* xfer)
112112

113113
// Get String descriptor using Sync API
114114
uint16_t temp_buf[128];
115-
uint8_t result;
116115

117116
Serial.printf(" iManufacturer %u " , desc_device.iManufacturer);
118117
if (XFER_RESULT_SUCCESS == tuh_descriptor_get_manufacturer_string_sync(daddr, LANGUAGE_ID, temp_buf, sizeof(temp_buf)) )
119118
{
120-
TU_LOG2_ARR(temp_buf, sizeof(temp_buf));
121119
print_utf16(temp_buf, TU_ARRAY_SIZE(temp_buf));
122120
}
123121
Serial.printf("\r\n");

src/arduino/Adafruit_USBH_Host.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,25 @@ void Adafruit_USBH_Host::task(void)
6363
// therefore report_desc = NULL, desc_len = 0
6464
void tuh_hid_mount_cb(uint8_t dev_addr, uint8_t instance, uint8_t const* desc_report, uint16_t desc_len)
6565
{
66-
(void)desc_report;
67-
(void)desc_len;
66+
(void) dev_addr;
67+
(void) instance;
68+
(void) desc_report;
69+
(void) desc_len;
6870
}
6971

7072
// Invoked when device with hid interface is un-mounted
7173
void tuh_hid_umount_cb(uint8_t dev_addr, uint8_t instance)
7274
{
75+
(void) dev_addr;
76+
(void) instance;
7377
}
7478

7579
// Invoked when received report from device via interrupt endpoint
7680
void tuh_hid_report_received_cb(uint8_t dev_addr, uint8_t instance, uint8_t const* report, uint16_t len)
7781
{
82+
(void) dev_addr;
83+
(void) instance;
84+
(void) report;
7885
(void) len;
7986
}
8087
#endif

src/arduino/ports/rp2040/tusb_config_rp2040.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extern "C" {
4848
#endif
4949
#define CFG_TUSB_OS OPT_OS_PICO
5050

51-
#define CFG_TUSB_DEBUG 2
51+
#define CFG_TUSB_DEBUG 0
5252
#if CFG_TUSB_DEBUG
5353
#define CFG_TUSB_DEBUG_PRINTF serial1_printf
5454
extern int serial1_printf(const char *__restrict __format, ...);

0 commit comments

Comments
 (0)