From 9bbf1d200534cd946c4776e29457f989147b45b2 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Feb 2019 18:08:31 +0000 Subject: everything working, even with fucked phy --- app/bits.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'app/bits.c') diff --git a/app/bits.c b/app/bits.c index 03d5c31..6978c74 100644 --- a/app/bits.c +++ b/app/bits.c @@ -1,22 +1,22 @@ #include "project.h" -void dump_bits(char *wot,uint8_t *bits) +void dump_bits (char *wot, uint8_t *bits) { -char buf[128]; -char *ptr=buf; -unsigned i=60; + char buf[128]; + char *ptr = buf; + unsigned i = 60; -ptr+=sprintf(buf,"%s bits: ",wot); + ptr += sprintf (buf, "%s bits: ", wot); -while (i--) -*(ptr++)=*(bits++) ? '1':'0'; + while (i--) + * (ptr++) = * (bits++) ? '1' : '0'; -*(ptr++)='\r'; -*(ptr++)='\n'; -*ptr=0; -usart1_write(buf,(unsigned) (ptr-buf),1); + * (ptr++) = '\r'; + * (ptr++) = '\n'; + *ptr = 0; + usart1_write (buf, (unsigned) (ptr - buf), 1); } -- cgit v1.2.3