We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669644c commit 3907be8Copy full SHA for 3907be8
common_arm/usb_cdc.c
@@ -737,7 +737,7 @@ uint32_t usb_read_ng(uint8_t *data, size_t len) {
737
738
// if local buffer has all data
739
740
- for (uint8_t i = 0; i < len; i++) {
+ for (size_t i = 0; i < len; i++) {
741
data[nbBytesRcv++] = usb_read_ng_buffer[usb_read_ng_bufoffset + i];
742
}
743
@@ -755,7 +755,7 @@ uint32_t usb_read_ng(uint8_t *data, size_t len) {
755
756
// take all data from local buffer, then read from usb
757
758
- for (uint8_t i = 0; i < usb_read_ng_buflen; i++) {
+ for (size_t i = 0; i < usb_read_ng_buflen; i++) {
759
760
761
0 commit comments