diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-05-04 11:14:59 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-05-04 11:14:59 +0000 |
commit | 5ad4d138d7b07572d8e7e8016ce14c78821e1a46 (patch) | |
tree | bf6e14982eac060eea8b6108f6a4b3b571f7a67a | |
parent | 5bcdd92626f1a2c2d279a983270a5addc59f91e0 (diff) | |
download | rockbox-5ad4d138d7b07572d8e7e8016ce14c78821e1a46.tar.gz rockbox-5ad4d138d7b07572d8e7e8016ce14c78821e1a46.zip |
HD200 - fix backlight flashes during startup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25804 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/coldfire/mpio/hd200/backlight-hd200.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/coldfire/mpio/hd200/backlight-hd200.c b/firmware/target/coldfire/mpio/hd200/backlight-hd200.c index ef698b2a4a..c3bdb4efe7 100644 --- a/firmware/target/coldfire/mpio/hd200/backlight-hd200.c +++ b/firmware/target/coldfire/mpio/hd200/backlight-hd200.c | |||
@@ -43,9 +43,10 @@ bool _backlight_init(void) | |||
43 | 43 | ||
44 | void _backlight_hw_on(void) | 44 | void _backlight_hw_on(void) |
45 | { | 45 | { |
46 | 46 | #ifndef BOOTLOADER | |
47 | if (_backlight_on) | 47 | if (_backlight_on) |
48 | return; | 48 | return; |
49 | #endif | ||
49 | 50 | ||
50 | _backlight_set_brightness(_brightness); | 51 | _backlight_set_brightness(_brightness); |
51 | _backlight_on = true; | 52 | _backlight_on = true; |
@@ -63,8 +64,10 @@ void _backlight_set_brightness(int val) | |||
63 | { | 64 | { |
64 | unsigned char i; | 65 | unsigned char i; |
65 | 66 | ||
67 | #ifndef BOOTLOADER | ||
66 | if( _brightness == val && _backlight_on == true ) | 68 | if( _brightness == val && _backlight_on == true ) |
67 | return; | 69 | return; |
70 | #endif | ||
68 | 71 | ||
69 | and_l(~(1<<28),&GPIO_OUT); | 72 | and_l(~(1<<28),&GPIO_OUT); |
70 | sleep(4); | 73 | sleep(4); |