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
 // ------------------------
43
 // ------------------------
44
 
44
 
45
 static void eeprom_init() {
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
 void eeprom_write_byte(uint8_t *pos, unsigned char value) {
49
 void eeprom_write_byte(uint8_t *pos, unsigned char value) {

Loading…
Cancel
Save