Skip to content
Discussion options

You must be logged in to vote

Got VSCode set up so I could debug the library. The following change seems to correct the issue with the first two bytes being wrong. I tested pushing a 64byte payload with a non-zero value at the very end and I was able to receive it. As of right now, I don't have a good understanding of how the usb_rx_buffer is filled in this scenario to know whether this is correct. @sekigon-gonnoc thoughts?

diff --git a/src/pio_usb_device.c b/src/pio_usb_device.c
index 380951d..23ad402 100644
--- a/src/pio_usb_device.c
+++ b/src/pio_usb_device.c
@@ -172,7 +172,7 @@ static void __no_inline_not_in_flash_func(usb_device_packet_handler)(void) {
 
     if (ep->has_transfer) {
       if (res >= 0) {
-    …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sekigon-gonnoc
Comment options

@mikeDonahoe
Comment options

Answer selected by mikeDonahoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants