X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=rgb.h;h=05a061c823c3922cfa72bab0139164afc0ab27b0;hb=09441b496c6b40be151e4e655572cb37518e7225;hp=d24b41bf34cd3a389cb62b6865551911009608d5;hpb=8381b2e127303cc81feccf0a1b6b65b59ee1155e;p=rgblamp.git diff --git a/rgb.h b/rgb.h index d24b41b..05a061c 100644 --- a/rgb.h +++ b/rgb.h @@ -14,7 +14,7 @@ void rgb_init(); /* Turn on the rgb. Outputs are zero, or last values set by rgb_set(). */ -#define rgb_on() do { TMR2ON = 1; } while (0) +#define rgb_on() (TMR2ON = 1) /* Turn off the rgb, first setting outputs to zero. */ void rgb_off();