X-Git-Url: https://git.llucax.com/z.facultad/66.09/etherled.git/blobdiff_plain/8f48e4df85125bfd22f8c93b5952deccc9f6af72..1655c9d04f619f5160e6e4cc2a19f8143d140e6e:/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) ;