mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-19 02:51:38 +02:00
* added erase application settings
* HM1500 as selectable in setup * Added new commands to statistic (0x82, 0x83)
This commit is contained in:
parent
a00ab4e48d
commit
df9f050313
11 changed files with 71 additions and 35 deletions
|
@ -90,9 +90,8 @@ bool Main::getConfig(void) {
|
|||
memset(mStationPwd, 0, PWD_LEN);
|
||||
memset(mDeviceName, 0, DEVNAME_LEN);
|
||||
|
||||
// erase eeprom
|
||||
uint8_t buf[ADDR_NEXT-ADDR_START_SETTINGS] = {0};
|
||||
mEep->write(ADDR_START_SETTINGS, buf, (ADDR_NEXT-ADDR_START_SETTINGS));
|
||||
// erase application settings except wifi settings
|
||||
eraseSettings();
|
||||
}
|
||||
|
||||
return mApActive;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue