Revision: 61 http://svn.sourceforge.net/mactel-linux/?rev=61&view=rev Author: nboichat Date: 2006-11-24 06:33:33 -0800 (Fri, 24 Nov 2006)
Log Message: ----------- fix infinite loop for backlight 0 -- thanks to Soeren Sonnenburg Modified Paths: -------------- trunk/tools/backlight/backlight.c Modified: trunk/tools/backlight/backlight.c =================================================================== --- trunk/tools/backlight/backlight.c 2006-11-19 10:47:54 UTC (rev 60) +++ trunk/tools/backlight/backlight.c 2006-11-24 14:33:33 UTC (rev 61) @@ -54,8 +54,8 @@ OUTREG(0x7af8, 0x00000001 | ((unsigned int)value << 8)); } -void write_backlight(unsigned char value) { - unsigned int current = read_backlight(); +void write_backlight(int value) { + int current = read_backlight(); if (current < value) { while (current < value) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mactel-linux-devel mailing list Mactel-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel