Skip to content

Commit

Permalink
Merge pull request #1185 from dhalbert/usb_write-length-fix
Browse files Browse the repository at this point in the history
usb_write() output_len was uint8_t instead of uint32_t
  • Loading branch information
tannewt committed Sep 12, 2018
2 parents 2cb7039 + 2bd7040 commit beb9446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/atmel-samd/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ void usb_write(const char* buffer, uint32_t len) {
return;
}
uint8_t * output_buffer;
uint8_t output_len;
uint32_t output_len;
while (len > 0) {
while (usb_transmitting) {}
output_buffer = (uint8_t *) buffer;
Expand Down

0 comments on commit beb9446

Please sign in to comment.