summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/sony-nwz
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-05-02 21:22:48 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2016-05-28 17:11:49 +0200
commit7e00be9a1e149e2ef2f64ff8acae9ebce8169526 (patch)
treedece2f50abceb35cebebcbcf2e5c0840e6adcc12 /firmware/target/arm/imx233/sony-nwz
parent9fe854e7825fd25a3cd5c6dd02c449b77d236d41 (diff)
downloadrockbox-7e00be9a1e149e2ef2f64ff8acae9ebce8169526.tar.gz
rockbox-7e00be9a1e149e2ef2f64ff8acae9ebce8169526.tar.bz2
rockbox-7e00be9a1e149e2ef2f64ff8acae9ebce8169526.zip
nwz-370/380: increase adc button error margin
For some reason those targets have quite imprecise button voltages and the old margin was too small. This should fix the button-not-working issue, especially when the player is very hot and cold. Change-Id: I9fcddd7f079cd1c4ee121567fb21a4a0cbc0562b
Diffstat (limited to 'firmware/target/arm/imx233/sony-nwz')
-rw-r--r--firmware/target/arm/imx233/sony-nwz/button-target.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sony-nwz/button-target.h b/firmware/target/arm/imx233/sony-nwz/button-target.h
index 41fe550935..cbe04a051b 100644
--- a/firmware/target/arm/imx233/sony-nwz/button-target.h
+++ b/firmware/target/arm/imx233/sony-nwz/button-target.h
@@ -32,6 +32,8 @@ bool button_debug_screen(void);
#define HAS_BUTTON_HOLD
#endif
+#define IMX233_BUTTON_LRADC_MARGIN 100
+
/* Main unit's buttons */
#define BUTTON_POWER 0x00000001
#define BUTTON_BACK 0x00000002