commit 4a8b279e56cc3ac42b752dcda5c228506da5d10a
parent 9a2b04f633fa892c9c16d88d551b160f42a7dbfc
Author: Christos Margiolis <christos@margiolis.net>
Date: Sat, 26 Mar 2022 16:58:55 +0200
lcd_init() has to come first
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -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");