aboutsummaryrefslogtreecommitdiff
path: root/driver_fw
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2019-04-23 11:52:51 +0900
committerjaseg <git@jaseg.net>2019-04-23 11:52:51 +0900
commit69ead15835f72aa0fb1159c15a2b483cebf793e0 (patch)
tree6f5ffd55ef937709ed3063e74a07667139e0ca25 /driver_fw
parent257a7b8789951d886dc38adb0561819e7172ac76 (diff)
download8seg-69ead15835f72aa0fb1159c15a2b483cebf793e0.tar.gz
8seg-69ead15835f72aa0fb1159c15a2b483cebf793e0.tar.bz2
8seg-69ead15835f72aa0fb1159c15a2b483cebf793e0.zip
driver: Fix temp sensor init in prototype hardware
Diffstat (limited to 'driver_fw')
-rw-r--r--driver_fw/main.c2
1 files changed, 1 insertions, 1 deletions
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();
}
}
}