Init i2c for all i2c EEPROM use (#15366)
This commit is contained in:
1 parent
665e45e0ba
commit
c0d5b57cf9
1 file changed
+1
-5
@@ -43,11 +43,7 @@ static uint8_t eeprom_device_address = 0x50;
|
||||
// ------------------------
|
||||
|
||||
static void eeprom_init() {
|
||||
static bool eeprom_initialized = false;
|
||||
if (!eeprom_initialized) {
|
||||
Wire.begin();
|
||||
eeprom_initialized = true;
|
||||
}
|
||||
Wire.begin();
|
||||
}
|
||||
|
||||
void eeprom_write_byte(uint8_t *pos, unsigned char value) {
|
||||
|
||||
Reference in new issue
Block a user