forked from len0rd/rockbox
Fix the iPod Nano 2G clickwheel when releasing the hold switch
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23122 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8855b0c613
commit
5a4ce22b77
1 changed files with 6 additions and 0 deletions
|
@ -380,6 +380,9 @@ int button_read_device(void)
|
|||
#ifdef CPU_PP
|
||||
/* lock -> disable wheel sensor */
|
||||
DEV_EN &= ~DEV_OPTO;
|
||||
#elif CONFIG_CPU==S5L8701
|
||||
CLICKWHEEL00 = 0;
|
||||
CLICKWHEEL10 = 0;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
@ -388,6 +391,9 @@ int button_read_device(void)
|
|||
/* unlock -> enable wheel sensor */
|
||||
DEV_EN |= DEV_OPTO;
|
||||
opto_i2c_init();
|
||||
#elif CONFIG_CPU==S5L8701
|
||||
CLICKWHEEL00 = 0x280000;
|
||||
CLICKWHEEL10 = 3;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue