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