1
0
Fork 0
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:
Michael Sparmann 2009-10-12 00:12:02 +00:00
parent 8855b0c613
commit 5a4ce22b77

View file

@ -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
}
}