Browse Source

Init i2c for all i2c EEPROM use (#15366)

Berezovskyi Oleksandr 5 years ago
parent
commit
c0d5b57cf9
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      Marlin/src/HAL/shared/eeprom_i2c.cpp

+ 1
- 5
Marlin/src/HAL/shared/eeprom_i2c.cpp View File

@@ -43,11 +43,7 @@ static uint8_t eeprom_device_address = 0x50;
43 43
 // ------------------------
44 44
 
45 45
 static void eeprom_init() {
46
-  static bool eeprom_initialized = false;
47
-  if (!eeprom_initialized) {
48
-    Wire.begin();
49
-    eeprom_initialized = true;
50
-  }
46
+  Wire.begin();
51 47
 }
52 48
 
53 49
 void eeprom_write_byte(uint8_t *pos, unsigned char value) {

Loading…
Cancel
Save