X-Git-Url: http://git.rrze.uni-erlangen.de/gitweb/?p=moodlight.git;a=blobdiff_plain;f=main.c;fp=main.c;h=05d4b6b8259968c631c1274fb8dd357d55515bdf;hp=3e66f1a5c5532373de52eb35575138d6d2b907e5;hb=4307b86abbc1664bf3de89518962491a9e491653;hpb=e001c0863c4fee6b80e36464cdbd05b0c8ce25a9 diff --git a/main.c b/main.c index 3e66f1a..05d4b6b 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.7 2010/07/24 20:55:48 simimeie Exp $ +/* $Id: main.c,v 1.8 2010/07/25 20:40:44 simimeie Exp $ * Main file for the HaWo moodlight. * This is the main file that glues it all together. It also contains all * functionality that is too small to require an extra file. @@ -166,9 +166,7 @@ int main(void) irstate = 0; break; }; - ledpwm_setled(LEDPWM_REDLED, (((uint16_t)ledpwm_re * ledpwm_bri) / 255)); - ledpwm_setled(LEDPWM_GREENLED, (((uint16_t)ledpwm_gr * ledpwm_bri) / 255)); - ledpwm_setled(LEDPWM_BLUELED, (((uint16_t)ledpwm_bl * ledpwm_bri) / 255)); + ledpwm_set(ledpwm_re, ledpwm_gr, ledpwm_bl, ledpwm_bri); } /* i++; console_printhex8(i);