X-Git-Url: https://git.llucax.com/z.facultad/66.09/etherled.git/blobdiff_plain/05000dec2685a88aaf9bd3c20c8861e62c94696c..afe814271b1b8c0519595d12d5a9cad8a24a3cc9:/src/debug.h diff --git a/src/debug.h b/src/debug.h index 1feac09..73e989f 100644 --- a/src/debug.h +++ b/src/debug.h @@ -18,15 +18,22 @@ } \ while (0) -#define print(w) \ - do \ - { \ - leds(w); \ - sleep(8); \ - } \ +#define print(w) \ + do \ + { \ + leds_write(w); \ + sleep(8); \ + } \ while (0) -#define printb(bh, bl) print(WORD(bh, bl)) +#define printb(bh, bl) \ + do \ + { \ + leds_write_high(bh); \ + leds_write_low(bl); \ + sleep(8); \ + } \ + while (0) #else // NO DEBUG