From 69ead15835f72aa0fb1159c15a2b483cebf793e0 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 23 Apr 2019 11:52:51 +0900 Subject: driver: Fix temp sensor init in prototype hardware --- driver_fw/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver_fw') diff --git a/driver_fw/main.c b/driver_fw/main.c index 24db291..dbd1d55 100644 --- a/driver_fw/main.c +++ b/driver_fw/main.c @@ -166,6 +166,7 @@ int main(void) { i2c_enable(I2C1); lcd1602_init(); ina226_init(); + mcp9801_init(); /* The MCP9801 temperature sensor is initialized below in the SysTick ISR since it needs a few milliseconds to * powerup. */ @@ -206,7 +207,6 @@ int main(void) { mini_snprintf(buf, sizeof(buf), "I=%dmA U=%dmV" LCD_FILL, ina226_read_i()*INA226_I_LSB_uA/1000, ina226_read_v()*INA226_VB_LSB_uV/1000); lcd_write_str(0, 1, buf); - mcp9801_init(); } } } -- cgit