1
0
Fork 0
forked from len0rd/rockbox

Killed a warning on Players

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1453 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-07-26 14:30:48 +00:00
parent e53bdf0c20
commit c3674ef96a

View file

@ -40,7 +40,6 @@ static int backlight_timeout = 5;
void backlight_thread(void) void backlight_thread(void)
{ {
struct event ev; struct event ev;
int tmp;
while(1) while(1)
{ {
@ -52,8 +51,8 @@ void backlight_thread(void)
if(backlight_timer) if(backlight_timer)
{ {
#ifdef HAVE_RTC #ifdef HAVE_RTC
tmp = rtc_read(0x0a); /* Enable square wave */
rtc_write(0x0a, tmp | 0x40); /* Enable square wave */ rtc_write(0x0a, rtc_read(0x0a) | 0x40);
#else #else
PADR &= ~0x4000; PADR &= ~0x4000;
#endif #endif
@ -62,8 +61,8 @@ void backlight_thread(void)
case BACKLIGHT_OFF: case BACKLIGHT_OFF:
#ifdef HAVE_RTC #ifdef HAVE_RTC
tmp = rtc_read(0x0a); /* Disable square wave */
rtc_write(0x0a, tmp & ~0x40); /* Disable square wave */ rtc_write(0x0a, rtc_read(0x0a) & ~0x40);
#else #else
PADR |= 0x4000; PADR |= 0x4000;
#endif #endif