Rename eeprom files to more generic data_storage

This is a preparation for futur non-volatile storage in flash memory.
This commit is contained in:
Martin Jäger
2021-03-12 18:40:22 +01:00
parent 483e09d1a2
commit a06f14b63c
7 changed files with 42 additions and 37 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ LOG_MODULE_REGISTER(dcdc, CONFIG_DCDC_LOG_LEVEL);
#include "device_status.h"
#include "helper.h"
#include "half_bridge.h"
#include "eeprom.h"
#include "data_storage.h"
#include "setup.h"
extern DeviceStatus dev_stat;
@@ -324,7 +324,7 @@ void Dcdc::fuse_destruction()
if (counter > 20) { // wait 20s to be able to send out data
LOG_ERR("Charge controller fuse destruction called!\n");
eeprom_store_data();
data_storage_write();
half_bridge_stop();
half_bridge_init(50, 0, 0, 0.98); // reset safety limits to allow 0% duty cycle
half_bridge_set_duty_cycle(0);