From 2e4d02abc05c1275579f553a5490be0a2d4d430f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 15 Nov 2024 14:58:06 +0100 Subject: [PATCH] len was another type, so to make sure... --- common_arm/usb_cdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_arm/usb_cdc.c b/common_arm/usb_cdc.c index c37a9934e..cc3534dc1 100644 --- a/common_arm/usb_cdc.c +++ b/common_arm/usb_cdc.c @@ -716,7 +716,7 @@ uint32_t usb_read(uint8_t *data, size_t len) { static uint8_t usb_read_ng_buffer[64] = {0}; static uint8_t usb_read_ng_bufoffset = 0; -static uint16_t usb_read_ng_buflen = 0; +static size_t usb_read_ng_buflen = 0; bool usb_read_ng_has_buffered_data(void) { return usb_read_ng_buflen > 0; -- 2.11.4.GIT