Added convert method to EEPROM to transfer data from partition to nvs (#2841)

* Added convert method to transfer data from partition to nvs

* Could have sworn I changed the return when I made the label

* Empty state should be 0xFF.  Fixed some logging levels

* Set result on success
This commit is contained in:
lbernstone
2019-07-09 10:47:06 -06:00
committed by Me No Dev
parent 87e5787cf7
commit ca7106e97e
3 changed files with 67 additions and 4 deletions

View File

@ -47,6 +47,7 @@ class EEPROMClass {
void end();
uint8_t * getDataPtr();
uint16_t convert(bool clear, const char* EEPROMname = "eeprom", const char* nvsname = "eeprom");
template<typename T>
T &get(int address, T &t) {