mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-11 07:56:39 +02:00
* preliminary state, compiles good not tested on hardware
* converted struct inverter_t to class Inverter * started with calculation functions (idea from Hubi/mikrocontroller.net)
This commit is contained in:
parent
d195eee498
commit
f6b75aff90
15 changed files with 214 additions and 290 deletions
|
@ -53,6 +53,17 @@ class Main {
|
|||
return (crcCheck == crcRd);
|
||||
}
|
||||
|
||||
void eraseSettings(void) {
|
||||
uint8_t buf[64] = {0};
|
||||
uint16_t addr = ADDR_START_SETTINGS, end;
|
||||
do {
|
||||
end = addr += 64;
|
||||
if(end > (ADDR_SETTINGS_CRC + 2))
|
||||
end = (ADDR_SETTINGS_CRC + 2 - addr);
|
||||
mEep->write(ADDR_START_SETTINGS, buf, (ADDR_NEXT-ADDR_START_SETTINGS));
|
||||
} while(addr < ADDR_START_SETTINGS);
|
||||
}
|
||||
|
||||
char mStationSsid[SSID_LEN];
|
||||
char mStationPwd[PWD_LEN];
|
||||
bool mWifiSettingsValid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue