diff options
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c')
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c index 612ec39fb9..ad0dd16ff3 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c | |||
@@ -79,7 +79,7 @@ bool button_debug_screen(void) | |||
79 | lcd_putsf(0, 1, "RMI: id=%s p=%x s=%x", product_id, func_presence, sensor_prop); | 79 | lcd_putsf(0, 1, "RMI: id=%s p=%x s=%x", product_id, func_presence, sensor_prop); |
80 | lcd_putsf(0, 2, "xmax=%d ymax=%d res=%d", x_max, y_max, sensor_resol); | 80 | lcd_putsf(0, 2, "xmax=%d ymax=%d res=%d", x_max, y_max, sensor_resol); |
81 | lcd_putsf(0, 3, "attn=%d ctl=%x int=%x", | 81 | lcd_putsf(0, 3, "attn=%d ctl=%x int=%x", |
82 | imx233_pinctrl_get_gpio_mask(0, 0x08000000) ? 0 : 1, | 82 | imx233_pinctrl_get_gpio(0, 27) ? 0 : 1, |
83 | rmi_read_single(RMI_DEVICE_CONTROL), | 83 | rmi_read_single(RMI_DEVICE_CONTROL), |
84 | rmi_read_single(RMI_INTERRUPT_REQUEST)); | 84 | rmi_read_single(RMI_INTERRUPT_REQUEST)); |
85 | lcd_putsf(0, 4, "sensi: %d min_dist: %d", (int)sensitivity.value, min_dist); | 85 | lcd_putsf(0, 4, "sensi: %d min_dist: %d", (int)sensitivity.value, min_dist); |
@@ -356,7 +356,7 @@ int touchpad_read_device(void) | |||
356 | int button_read_device(void) | 356 | int button_read_device(void) |
357 | { | 357 | { |
358 | int res = 0; | 358 | int res = 0; |
359 | if(!imx233_pinctrl_get_gpio_mask(1, 0x40000000)) | 359 | if(!imx233_pinctrl_get_gpio(1, 30)) |
360 | res |= BUTTON_VOL_DOWN; | 360 | res |= BUTTON_VOL_DOWN; |
361 | /* The imx233 uses the voltage on the PSWITCH pin to detect power up/down | 361 | /* The imx233 uses the voltage on the PSWITCH pin to detect power up/down |
362 | * events as well as recovery mode. Since the power button is the power button | 362 | * events as well as recovery mode. Since the power button is the power button |