1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

add EEPROM.getDataPtr()

fix all warnings in EEPROMClass
This commit is contained in:
Markus Sattler
2015-05-03 18:15:54 +02:00
parent 3406b47949
commit 48ddce71c6
2 changed files with 10 additions and 3 deletions

View File

@ -36,6 +36,8 @@ class EEPROMClass
bool commit();
void end();
uint8_t * getDataPtr();
template<typename T> T &get(int address, T &t)
{
if (address < 0 || address + sizeof(T) > _size)