mirror of
https://github.com/nalf3in/vial-qmk.git
synced 2025-12-22 03:30:03 +00:00
EEPROM: Don't erase if we don't have to. Adding eeprom_driver_format abstraction. (#18332)
This commit is contained in:
@@ -10,6 +10,12 @@ void eeprom_driver_init(void) {
|
||||
wear_leveling_init();
|
||||
}
|
||||
|
||||
void eeprom_driver_format(bool erase) {
|
||||
/* wear leveling requires the write log data structures to be erased before use. */
|
||||
(void)erase;
|
||||
eeprom_driver_erase();
|
||||
}
|
||||
|
||||
void eeprom_driver_erase(void) {
|
||||
wear_leveling_erase();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user