From bfa94e1d31d9d9c1d9bcaf4313cd112d43e772a4 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 11 Jun 2008 17:49:52 +0000 Subject: [PATCH] Use brackets for if/else. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1454 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/avr/drv/sipo.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bertos/cpu/avr/drv/sipo.c b/bertos/cpu/avr/drv/sipo.c index 014f9463..db4ec87e 100644 --- a/bertos/cpu/avr/drv/sipo.c +++ b/bertos/cpu/avr/drv/sipo.c @@ -42,8 +42,10 @@ * */ -#include #include "sipo.h" +#include "hw/hw_sipo.h" + +#include 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; } -- 2.25.1