diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-26 14:30:48 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-26 14:30:48 +0000 |
commit | c3674ef96afc7fe64d924ccb90f5d56e531774e0 (patch) | |
tree | ed294fdd6d642f845e3ab3a605420de83fdec171 /firmware/backlight.c | |
parent | e53bdf0c20a2be846affe3282ac268378083b265 (diff) | |
download | rockbox-c3674ef96afc7fe64d924ccb90f5d56e531774e0.tar.gz rockbox-c3674ef96afc7fe64d924ccb90f5d56e531774e0.zip |
Killed a warning on Players
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1453 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r-- | firmware/backlight.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c index 442c441035..27c608ea62 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c | |||
@@ -40,7 +40,6 @@ static int backlight_timeout = 5; | |||
40 | void backlight_thread(void) | 40 | void backlight_thread(void) |
41 | { | 41 | { |
42 | struct event ev; | 42 | struct event ev; |
43 | int tmp; | ||
44 | 43 | ||
45 | while(1) | 44 | while(1) |
46 | { | 45 | { |
@@ -52,8 +51,8 @@ void backlight_thread(void) | |||
52 | if(backlight_timer) | 51 | if(backlight_timer) |
53 | { | 52 | { |
54 | #ifdef HAVE_RTC | 53 | #ifdef HAVE_RTC |
55 | tmp = rtc_read(0x0a); | 54 | /* Enable square wave */ |
56 | rtc_write(0x0a, tmp | 0x40); /* Enable square wave */ | 55 | rtc_write(0x0a, rtc_read(0x0a) | 0x40); |
57 | #else | 56 | #else |
58 | PADR &= ~0x4000; | 57 | PADR &= ~0x4000; |
59 | #endif | 58 | #endif |
@@ -62,8 +61,8 @@ void backlight_thread(void) | |||
62 | 61 | ||
63 | case BACKLIGHT_OFF: | 62 | case BACKLIGHT_OFF: |
64 | #ifdef HAVE_RTC | 63 | #ifdef HAVE_RTC |
65 | tmp = rtc_read(0x0a); | 64 | /* Disable square wave */ |
66 | rtc_write(0x0a, tmp & ~0x40); /* Disable square wave */ | 65 | rtc_write(0x0a, rtc_read(0x0a) & ~0x40); |
67 | #else | 66 | #else |
68 | PADR |= 0x4000; | 67 | PADR |= 0x4000; |
69 | #endif | 68 | #endif |