Cleanup, comment "wired" eeproms

This commit is contained in:
Scott Lahteine
2020-04-30 17:33:20 -05:00
parent a521b0edbb
commit 3c080ee3e6
10 changed files with 57 additions and 9 deletions

View File

@ -26,14 +26,21 @@
#if USE_WIRED_EEPROM
/**
* PersistentStore for Arduino-style EEPROM interface
* with simple implementations supplied by Marlin.
*/
#include "../shared/eeprom_if.h"
#include "../shared/eeprom_api.h"
size_t PersistentStore::capacity() { return E2END + 1; }
bool PersistentStore::access_start() { return true; }
bool PersistentStore::access_finish() { return true; }
bool PersistentStore::access_start() {
return true;
}
bool PersistentStore::write_data(int &pos, const uint8_t *value, size_t size, uint16_t *crc) {
while (size--) {
uint8_t v = *value;