Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.

Commit 6837647

Browse files
committed
changed axp init value for N_OE timeout
1 parent edd81b6 commit 6837647

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

driver_axp209.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ bool axp209_init(void) {
6161
}
6262

6363
/* Set N_OE Shutdown delay to 3S*/
64-
err = i2c_smbus_write_byte_data(fd_axp209 , AXP209_REG_32H, 0x43);
64+
err = i2c_smbus_write_byte_data(fd_axp209 , AXP209_REG_32H, 0x47);
6565
if(err < 0){
6666
printf("ERROR Setting AXP209 N_OE Shutdown delay to 3S\n");
6767
}

gpio_mapping.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
return(EXIT_FAILURE); \
2323
} while(0)
2424

25-
#define DEBUG_GPIO_PRINTF (0)
25+
#define DEBUG_GPIO_PRINTF (1)
2626
#define DEBUG_PERIODIC_CHECK_PRINTF (0)
2727
#define ERROR_GPIO_PRINTF (1)
2828

0 commit comments

Comments
 (0)