Skip to content

Commit 5c67334

Browse files
committed
Pointer dereference fix in example
1 parent 06fdaa1 commit 5c67334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/USB/examples/HIDVendor/HIDVendor.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static void vendorEventCallback(void* arg, esp_event_base_t event_base, int32_t
2020
case ARDUINO_USB_HID_VENDOR_SET_FEATURE_EVENT:
2121
Serial.printf("HID VENDOR SET FEATURE: len:%u\n", data->len);
2222
for(uint16_t i=0; i<data->len; i++){
23-
Serial.printf("0x%02X ",data->buffer);
23+
Serial.printf("0x%02X ",*(data->buffer));
2424
}
2525
Serial.println();
2626
break;

0 commit comments

Comments
 (0)