From 7e00be9a1e149e2ef2f64ff8acae9ebce8169526 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 2 May 2016 21:22:48 +0100 Subject: 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 --- firmware/target/arm/imx233/sony-nwz/button-target.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/target/arm/imx233/sony-nwz') 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 -- cgit