From 40d509b4deda4305699b2f4337eeec8e6a3ada26 Mon Sep 17 00:00:00 2001 From: Biktor Date: Wed, 16 Sep 2020 07:26:15 +0200 Subject: [PATCH] When reading the GPIO value to enter fastboot, flip it so it doesn't break the modem scripts --- target/mdm9607/keypad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/mdm9607/keypad.c b/target/mdm9607/keypad.c index 9c0bc31e..fa26ffe5 100644 --- a/target/mdm9607/keypad.c +++ b/target/mdm9607/keypad.c @@ -51,7 +51,7 @@ int get_fastboot_key_state(void) ret = gpio_get_state(FASTBOOT_KEY_GPIO_ID); - return ret; + return !ret; } /*