Merge pull request #1185 from dhalbert/usb_write-length-fix

usb_write() output_len was uint8_t instead of uint32_t
This commit is contained in:
Scott Shawcroft 2018-09-12 15:00:24 -07:00 committed by GitHub
commit beb9446f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;