mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
ma9: Fix 'always load OF' bug in bootloader.
button_read_device() could be called before pca9555_read_thread intializes pca9555_in_ports variable, and return incorrect value. Change-Id: I960bff72fe230c9d0256b20e92d0a75e67266038
This commit is contained in:
parent
c49a447dd0
commit
b48e6d0e1c
1 changed files with 1 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ static void pca9555_ports_init(void)
|
||||||
*/
|
*/
|
||||||
data |= ((1<<10)|(0<<9)|(1<<8));
|
data |= ((1<<10)|(0<<9)|(1<<8));
|
||||||
pca9555_write_output(data, 0xffff);
|
pca9555_write_output(data, 0xffff);
|
||||||
|
pca9555_in_ports = pca9555_read_input();
|
||||||
}
|
}
|
||||||
|
|
||||||
void pca9555_target_init(void)
|
void pca9555_target_init(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue