~crm/pic_therm

4a8b279e56cc3ac42b752dcda5c228506da5d10a — Christos Margiolis 2 years ago 9a2b04f
lcd_init() has to come first
1 files changed, 3 insertions(+), 3 deletions(-)

M src/main.c
M src/main.c => src/main.c +3 -3
@@ 112,11 112,11 @@ void
main(void)
{
	tmr0_init();
	lcd_init();
	if (tmr0_set_event(&led_blink, 1000) < 0)
		HANG("led_blink event failed");
		HANG("led_blink failed");
	if (tmr0_set_event(&button_debounce, 1) < 0)
		HANG("button_debounce event failed");
	lcd_init();
		HANG("button_debounce failed");
	i2c_init(I2C_MASTER, I2C_SLEW_OFF, I2C_CLK_1MHZ);
	if (bme280_init() < 0)
		HANG("BME280 error");