aboutsummaryrefslogtreecommitdiffstats
path: root/ports/AVR/avr_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/AVR/avr_serial.c')
-rw-r--r--ports/AVR/avr_serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/AVR/avr_serial.c b/ports/AVR/avr_serial.c
index d9db9efcc..474e9cb20 100644
--- a/ports/AVR/avr_serial.c
+++ b/ports/AVR/avr_serial.c
@@ -150,11 +150,11 @@ void InitSerial(void) {
#ifdef USE_AVR_USART0
/* I/O queues setup.*/
chFDDInit(&SER1, ib1, sizeof ib1, NULL, ob1, sizeof ob1, OutNotify1);
- SetUSART0I(UBRR(38400), 0);
+ SetUSART0I(UBRR(38400), (1 << UCSZ1) | (1 << UCSZ0));
#endif
#ifdef USE_AVR_USART1
chFDDInit(&SER2, ib2, sizeof ib2, NULL, ob2, sizeof ob2, OutNotify2);
- SetUSART1I(UBRR(38400), 0);
+ SetUSART1I(UBRR(38400), (1 << UCSZ1) | (1 << UCSZ0));
#endif
}