removed some Serial.print
This commit is contained in:
parent
dab826b862
commit
cda2bb7afc
@ -18,7 +18,9 @@ void InitEEPROM()
|
||||
{
|
||||
ee.begin();
|
||||
if (!ee.isConnected())
|
||||
Serial.println(PSTR("ERROR: Can't find eeprom..."));
|
||||
{
|
||||
MaintainDTC(DTC_NO_EEPROM_FOUND, true);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -29,22 +31,18 @@ void EEPROM_Process()
|
||||
{
|
||||
case EE_CFG_SAVE:
|
||||
StoreConfig_EEPROM();
|
||||
Serial.println("EE_CFG_SAVE");
|
||||
globals.requestEEAction = EE_IDLE;
|
||||
break;
|
||||
case EE_CFG_LOAD:
|
||||
GetConfig_EEPROM();
|
||||
Serial.println("EE_CFG_LOAD");
|
||||
globals.requestEEAction = EE_IDLE;
|
||||
break;
|
||||
case EE_PDS_SAVE:
|
||||
StorePersistence_EEPROM();
|
||||
Serial.println("EE_PDS_SAVE");
|
||||
globals.requestEEAction = EE_IDLE;
|
||||
break;
|
||||
case EE_PDS_LOAD:
|
||||
GetPersistence_EEPROM();
|
||||
Serial.println("EE_PDS_LOAD");
|
||||
globals.requestEEAction = EE_IDLE;
|
||||
break;
|
||||
case EE_IDLE:
|
||||
@ -86,7 +84,7 @@ void GetConfig_EEPROM()
|
||||
|
||||
if (Checksum_EEPROM((uint8_t *)&LubeConfig, sizeof(LubeConfig)) != checksum)
|
||||
{
|
||||
Serial.printf(PSTR("CFG EEPROM Checksum BAD\n"));
|
||||
MaintainDTC(DTC_EEPROM_CFG_BAD, true);
|
||||
FormatConfig_EEPROM();
|
||||
}
|
||||
LubeConfig.checksum = checksum;
|
||||
@ -141,8 +139,7 @@ void GetPersistence_EEPROM()
|
||||
|
||||
if (Checksum_EEPROM((uint8_t *)&PersistenceData, sizeof(PersistenceData)) != checksum)
|
||||
{
|
||||
Serial.printf(PSTR("Persistance EEPROM Checksum BAD\n"));
|
||||
Serial.printf(PSTR("PSD Address: 0x%04X"), getPersistanceAddress());
|
||||
MaintainDTC(DTC_EEPROM_PDS_BAD, true);
|
||||
FormatPersistence_EEPROM();
|
||||
}
|
||||
PersistenceData.checksum = checksum;
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <EEPROM.h>
|
||||
#endif
|
||||
#include "globals.h"
|
||||
#include "dtc.h"
|
||||
|
||||
#define EEPROM_SIZE_BYTES I2C_DEVICESIZE_24LC256
|
||||
|
||||
|
@ -3,13 +3,16 @@
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
#define MAX_DTC_STORAGE 3
|
||||
#define MAX_DTC_STORAGE 6
|
||||
|
||||
typedef enum DTCNums_e
|
||||
{
|
||||
DTC_NO_GPS_SERIAL,
|
||||
DTC_NO_CAN_SIGNAL,
|
||||
DTC_TANK_EMPTY,
|
||||
DTC_NO_EEPROM_FOUND,
|
||||
DTC_EEPROM_CFG_BAD,
|
||||
DTC_EEPROM_PDS_BAD,
|
||||
DTC_LAST_DTC
|
||||
} DTCNums_t;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user