From 68376473ce3f8a20b1a795d3b3b3022ca5817fb7 Mon Sep 17 00:00:00 2001 From: Vincent-FK Date: Tue, 14 Jan 2020 17:07:23 +0800 Subject: [PATCH] changed axp init value for N_OE timeout --- driver_axp209.c | 2 +- gpio_mapping.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/driver_axp209.c b/driver_axp209.c index 82dc484..d8b3883 100755 --- a/driver_axp209.c +++ b/driver_axp209.c @@ -61,7 +61,7 @@ bool axp209_init(void) { } /* Set N_OE Shutdown delay to 3S*/ - err = i2c_smbus_write_byte_data(fd_axp209 , AXP209_REG_32H, 0x43); + err = i2c_smbus_write_byte_data(fd_axp209 , AXP209_REG_32H, 0x47); if(err < 0){ printf("ERROR Setting AXP209 N_OE Shutdown delay to 3S\n"); } diff --git a/gpio_mapping.c b/gpio_mapping.c index 5a052af..a9cb903 100755 --- a/gpio_mapping.c +++ b/gpio_mapping.c @@ -22,7 +22,7 @@ return(EXIT_FAILURE); \ } while(0) -#define DEBUG_GPIO_PRINTF (0) +#define DEBUG_GPIO_PRINTF (1) #define DEBUG_PERIODIC_CHECK_PRINTF (0) #define ERROR_GPIO_PRINTF (1)