Use brackets for if/else.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Jun 2008 17:49:52 +0000 (17:49 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Jun 2008 17:49:52 +0000 (17:49 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1454 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/avr/drv/sipo.c

index 014f946383ffceacc3da179f6ac0b21b562bfda7..db4ec87e5c0501a4223c1672d9cb52af1835885d 100644 (file)
  *
  */
 
-#include <drv/ser.h>
 #include "sipo.h"
+#include "hw/hw_sipo.h"
+
+#include <drv/ser.h>
 
 Serial *sipo_port;
 
@@ -67,9 +69,13 @@ void sipo_putchar(uint8_t c)
        for(int i = 0; i <= 7; i++)
        {
                if((c & BV(i)) == 0)
+               {
                        SET_SOUT_LOW;
+               }
                else
+               {
                        SET_SOUT_HIGH;
+               }
 
                CLOCK_PULSE;
        }