Browse Source

changed axp init value for N_OE timeout

Vincent-FK 4 years ago
parent
commit
68376473ce
2 changed files with 2 additions and 2 deletions
  1. 1 1
      driver_axp209.c
  2. 1 1
      gpio_mapping.c

+ 1 - 1
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");
     }

+ 1 - 1
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)