projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't cast the line encoding baud rate to a uint16_t before performing the baud rate...
[pub/USBasp.git]
/
Projects
/
Benito
/
Benito.c
diff --git
a/Projects/Benito/Benito.c
b/Projects/Benito/Benito.c
index
be623e9
..
a91cef0
100644
(file)
--- a/
Projects/Benito/Benito.c
+++ b/
Projects/Benito/Benito.c
@@
-229,7
+229,7
@@
void EVENT_CDC_Device_LineEncodingChanged(USB_ClassInfo_CDC_Device_t* const CDCI
UCSR1A = (1 << U2X1);
\r
UCSR1B = ((1 << RXCIE1) | (1 << TXEN1) | (1 << RXEN1));
\r
UCSR1C = ConfigMask;
\r
UCSR1A = (1 << U2X1);
\r
UCSR1B = ((1 << RXCIE1) | (1 << TXEN1) | (1 << RXEN1));
\r
UCSR1C = ConfigMask;
\r
- UBRR1 = SERIAL_2X_UBBRVAL(
(uint16_t)
CDCInterfaceInfo->State.LineEncoding.BaudRateBPS);
\r
+ UBRR1 = SERIAL_2X_UBBRVAL(CDCInterfaceInfo->State.LineEncoding.BaudRateBPS);
\r
}
\r
\r
/** ISR to manage the reception of data from the serial port, placing received bytes into a circular buffer
\r
}
\r
\r
/** ISR to manage the reception of data from the serial port, placing received bytes into a circular buffer
\r