Various fixes

This commit is contained in:
cschwinne
2020-12-10 16:27:23 +01:00
parent 7684fb83d6
commit 03516e11f7
6 changed files with 34 additions and 5 deletions

View File

@@ -36,6 +36,20 @@
//21-> 0.10.1p
//22-> 2009260
/*
* Erase all (pre 0.11) configuration data on factory reset
*/
void clearEEPROM()
{
EEPROM.begin(EEPSIZE);
for (int i = 0; i < EEPSIZE; i++)
{
EEPROM.write(i, 0);
}
EEPROM.end();
}
void readStringFromEEPROM(uint16_t pos, char* str, uint16_t len)
{
for (int i = 0; i < len; ++i)