X-Git-Url: https://git.llucax.com/z.facultad/66.09/etherled.git/blobdiff_plain/8f48e4df85125bfd22f8c93b5952deccc9f6af72..db76f3270c5bee0eb1b5ee71fa1946e8d5132d43:/src/debug.h?ds=inline 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) ;