From 3cba41f49f2d91a13addea0004f7c91292d4d3e0 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 19 May 2019 14:43:58 +0900 Subject: Add mounting structure simulation --- driver_fw/ina226.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver_fw/ina226.c') diff --git a/driver_fw/ina226.c b/driver_fw/ina226.c index d73703b..c740125 100644 --- a/driver_fw/ina226.c +++ b/driver_fw/ina226.c @@ -5,7 +5,7 @@ void ina226_init() { /* FIXME plug in final values for I meas backchannel */ - uint16_t config = INA226_CONFIG_AVG_128 | INA226_CONFIG_VBUSCT_204u | INA226_CONFIG_VSHCT_1m1 | + uint16_t config = INA226_CONFIG_AVG_1 | INA226_CONFIG_VBUSCT_204u | INA226_CONFIG_VSHCT_4m156 | INA226_CONFIG_MODE_SHUNT | INA226_CONFIG_MODE_BUS | INA226_CONFIG_MODE_CONT; ina226_write_reg(INA226_REG_CONFIG, config); -- cgit