From f8a195bd4bccabdb01312921d7fa44b5be4021da Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Sun, 3 Dec 2023 22:53:35 +0100 Subject: [PATCH] changed order of I2C-Init to fix EE-Issues --- Software/src/main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Software/src/main.cpp b/Software/src/main.cpp index 1a28812..80e8e75 100644 --- a/Software/src/main.cpp +++ b/Software/src/main.cpp @@ -82,10 +82,6 @@ void setup() Serial.print("\n\nSouko's ChainLube Mk1\n"); Serial.print(globals.DeviceName); - InitEEPROM(); - GetConfig_EEPROM(); - GetPersistence_EEPROM(); - Serial.print("\nEE-Init done"); #ifdef FEATURE_ENABLE_OLED u8x8.begin(); u8x8.setFont(u8x8_font_chroma48medium8_r); @@ -94,6 +90,12 @@ void setup() u8x8.refreshDisplay(); Serial.print("\nDisplay-Init done"); #endif + + InitEEPROM(); + GetConfig_EEPROM(); + GetPersistence_EEPROM(); + Serial.print("\nEE-Init done"); + leds.begin(); Serial.print("\nLED-Init done");