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