Skip to content

Commit 7fb912f

Browse files
committed
usb_div size fix
1 parent 9c10fe8 commit 7fb912f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arduino/ports/ch32/Adafruit_TinyUSB_ch32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void TinyUSB_Port_InitDevice(uint8_t rhport) {
120120
#define RCC_AHBPeriphClockCmd RCC_HBPeriphClockCmd
121121
#endif
122122

123-
uint8_t usb_div;
123+
uint32_t usb_div;
124124
switch (SystemCoreClock) {
125125
#if defined(CH32V20x) || defined(CH32V30x)
126126
case 48000000:

0 commit comments

Comments
 (0)