Don't cast the line encoding baud rate to a uint16_t before performing the baud rate...
authorDean Camera <dean@fourwalledcubicle.com>
Fri, 7 May 2010 06:49:31 +0000 (06:49 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Fri, 7 May 2010 06:49:31 +0000 (06:49 +0000)
Projects/Benito/Benito.c

index be623e9..a91cef0 100644 (file)
@@ -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
-       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