From 0768a3202d01d0f36e05f2257e62dba0d1ff22e0 Mon Sep 17 00:00:00 2001 From: Dean Date: Sun, 22 Aug 2010 02:45:20 +0000 Subject: Moved calls to Device mode Class Driver events to after the request has been acknowledged, so that long event handlers do do skew the timing of the control requests. Fixed USBtoSerial and Benito project SetLineEncoding calls failing if the USART is busy, due to the RX ISR delaying the control request handler. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1447 d5102386-fcda-11dd-9fdb-3debd5008f28 --- Projects/USBtoSerial/USBtoSerial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Projects/USBtoSerial/USBtoSerial.c') diff --git a/Projects/USBtoSerial/USBtoSerial.c b/Projects/USBtoSerial/USBtoSerial.c index b50537e7..845c2a51 100644 --- a/Projects/USBtoSerial/USBtoSerial.c +++ b/Projects/USBtoSerial/USBtoSerial.c @@ -207,6 +207,6 @@ void EVENT_CDC_Device_LineEncodingChanged(USB_ClassInfo_CDC_Device_t* const CDCI /* Reconfigure the USART in double speed mode for a wider baud rate range at the expense of accuracy */ UCSR1C = ConfigMask; - UCSR1A = (1 << U2X1); + UCSR1A = (1 << U2X1); UCSR1B = ((1 << RXCIE1) | (1 << TXEN1) | (1 << RXEN1)); } -- cgit v1.2.3