diff options
Diffstat (limited to 'app/bits.c')
-rw-r--r-- | app/bits.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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); } |