diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-05-07 06:49:31 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-05-07 06:49:31 +0000 |
| commit | 434b5f4d65b439241258b38ed01e5ef36edd53b8 (patch) | |
| tree | a7b70b4b79df36fa04f7a78d7fb9604b1eba12ce /Projects/Benito/Benito.c | |
| parent | 2d7940c4f3cbe253407a6092301ecf0fb0898ef6 (diff) | |
Don't cast the line encoding baud rate to a uint16_t before performing the baud rate calculation in the Benito project.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1245 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects/Benito/Benito.c')
| -rw-r--r-- | Projects/Benito/Benito.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/Benito/Benito.c b/Projects/Benito/Benito.c index be623e90..a91cef03 100644 --- 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);
UCSR1B = ((1 << RXCIE1) | (1 << TXEN1) | (1 << RXEN1));
UCSR1C = ConfigMask;
- UBRR1 = SERIAL_2X_UBBRVAL((uint16_t)CDCInterfaceInfo->State.LineEncoding.BaudRateBPS);
+ UBRR1 = SERIAL_2X_UBBRVAL(CDCInterfaceInfo->State.LineEncoding.BaudRateBPS);
}
/** ISR to manage the reception of data from the serial port, placing received bytes into a circular buffer
|
