MCPcopy Create free account
hub / github.com/UtilitechAS/amsreader-firmware / save

Method save

lib/AmsConfiguration/src/AmsConfiguration.cpp:1212–1221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210}
1211
1212bool AmsConfiguration::save() {
1213 EEPROM.begin(EEPROM_SIZE);
1214 uint8_t configVersion = EEPROM.read(EEPROM_CONFIG_ADDRESS);
1215 EEPROM.put(EEPROM_CONFIG_ADDRESS, EEPROM_CHECK_SUM);
1216 bool success = EEPROM.commit();
1217 EEPROM.end();
1218
1219 configVersion = EEPROM_CHECK_SUM;
1220 return success;
1221}
1222
1223void AmsConfiguration::saveToFs() {
1224

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected