mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 05:02:07 +00:00
Don't cast the line encoding baud rate to a uint16_t before performing the baud rate calculation in the Benito project.
This commit is contained in:
parent
2a2de8fea9
commit
57fe6b4fb9
@ -229,7 +229,7 @@ void EVENT_CDC_Device_LineEncodingChanged(USB_ClassInfo_CDC_Device_t* const CDCI
|
|||||||
UCSR1A = (1 << U2X1);
|
UCSR1A = (1 << U2X1);
|
||||||
UCSR1B = ((1 << RXCIE1) | (1 << TXEN1) | (1 << RXEN1));
|
UCSR1B = ((1 << RXCIE1) | (1 << TXEN1) | (1 << RXEN1));
|
||||||
UCSR1C = ConfigMask;
|
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
|
/** ISR to manage the reception of data from the serial port, placing received bytes into a circular buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user