diff --git a/yaMBSiavr.c b/yaMBSiavr.c index 9422034..b341fb8 100644 --- a/yaMBSiavr.c +++ b/yaMBSiavr.c @@ -12,7 +12,7 @@ License: BSD-3-Clause LICENSE: -Copyright 2017 Max Brueggemann +Copyright 2017 Max Brueggemann, www.maxbrueggemann.de Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -214,8 +214,8 @@ ISR(UART_TRANSMIT_COMPLETE_INTERRUPT) void modbusInit(void) { - UBRRH = (unsigned char)(UBRR>>8); - UBRRL = (unsigned char)UBRR; + UBRRH = (unsigned char)((UBRR) >> 8); + UBRRL = (unsigned char) UBRR; UART_STATUS = (1<