fix #48 constructor (#49)

* fix #48
This commit is contained in:
Rob Tillaart
2022-12-03 12:37:49 +01:00
committed by GitHub
parent 4db0ca9815
commit 8f530b6d8f
6 changed files with 20 additions and 13 deletions
+6 -6
View File
@@ -2,7 +2,7 @@
//
// FILE: I2C_eeprom.h
// AUTHOR: Rob Tillaart
// VERSION: 1.6.2
// VERSION: 1.7.0
// PURPOSE: Arduino Library for external I2C EEPROM 24LC256 et al.
// URL: https://github.com/RobTillaart/I2C_EEPROM.git
//
@@ -13,7 +13,7 @@
#include "Wire.h"
#define I2C_EEPROM_VERSION (F("1.6.2"))
#define I2C_EEPROM_VERSION (F("1.7.0"))
#define I2C_DEVICESIZE_24LC512 65536
@@ -113,10 +113,10 @@ public:
private:
uint8_t _deviceAddress;
uint32_t _lastWrite = 0; // for waitEEReady
uint32_t _deviceSize;
uint8_t _pageSize;
uint8_t _extraTWR = 0; // milliseconds
uint32_t _lastWrite = 0; // for waitEEReady
uint32_t _deviceSize = 0;
uint8_t _pageSize = 0;
uint8_t _extraTWR = 0; // milliseconds
// 24LC32..24LC512 use two bytes for memory address
// 24LC01..24LC16 use one-byte addresses + part of device address