diff --git a/yaMBSiavr.c b/yaMBSiavr.c index a62ae16..9422034 100644 --- a/yaMBSiavr.c +++ b/yaMBSiavr.c @@ -214,12 +214,15 @@ ISR(UART_TRANSMIT_COMPLETE_INTERRUPT) void modbusInit(void) { - UBRRH = (unsigned char)(Baud>>8); - UBRRL = (unsigned char)Baud; - UART_CONTROL = (1<>8); + UBRRL = (unsigned char)UBRR; + UART_STATUS = (1<