refactoring
This commit is contained in:
parent
f48b5a09ed
commit
22a62e3d1e
@ -31,6 +31,7 @@ typedef struct
|
||||
uint32_t checksum = 0;
|
||||
} persistenceData_t;
|
||||
|
||||
extern persistenceData_t PersistenceData;
|
||||
typedef enum
|
||||
{
|
||||
BATTERY_UNDEFINED,
|
||||
@ -56,6 +57,8 @@ typedef struct
|
||||
uint32_t checksum;
|
||||
} configData_t;
|
||||
|
||||
extern configData_t ConfigData;
|
||||
|
||||
const configData_t ConfigData_defaults = {
|
||||
2, // EEPROM_Version (incerease this if anything on Layout changes!)
|
||||
BATTERY_LIPO_3S, // batteryType
|
||||
@ -82,7 +85,4 @@ void dumpEEPROM(uint16_t memoryAddress, uint16_t length);
|
||||
void MovePersistencePage_EEPROM(boolean reset);
|
||||
uint32_t ConfigSanityCheck(bool autocorrect = false);
|
||||
|
||||
extern configData_t ConfigData;
|
||||
extern persistenceData_t PersistenceData;
|
||||
|
||||
#endif // _EEPROM_H_
|
Loading…
x
Reference in New Issue
Block a user