Skip to content

Commit 282030b

Browse files
Fix inconsistent function signature in CDC.cpp
USBAPI.h declares the return type of Serial_::baud() as `uint32_t`
1 parent 790ff2c commit 282030b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/USB/CDC.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ int32_t Serial_::readBreak() {
336336
return ret;
337337
}
338338

339-
unsigned long Serial_::baud() {
339+
uint32_t Serial_::baud() {
340340
return _usbLineInfo.dwDTERate;
341341
}
342342

0 commit comments

Comments
 (0)