From 91c4683826d7e43e5131f29d635d7eabb3aab670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Br=C3=BCggemann?= Date: Wed, 18 Oct 2017 00:35:03 +0200 Subject: [PATCH] Changed comments. --- yaMBSiavr.c | 29 ++++++++++++++++++++++++++--- yaMBSiavr.h | 16 +++++++++++++++- 2 files changed, 41 insertions(+), 4 deletions(-) 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<