EEPROM conversions on sky9x

This commit is contained in:
bsongis
2014-03-29 10:07:22 +01:00
parent 6b4c5bb754
commit bb57755f5e
6 changed files with 138 additions and 81 deletions
+17
View File
@@ -868,6 +868,23 @@ void RlcFile::DisplayProgressBar(uint8_t x)
#define CHECK_EEPROM_VARIANT() (1)
#endif
// For conversions ...
#if defined(CPUARM)
void loadGeneralSettings()
{
memset(&g_eeGeneral, 0, sizeof(g_eeGeneral));
theFile.openRlc(FILE_GENERAL);
theFile.readRlc((uint8_t*)&g_eeGeneral, sizeof(g_eeGeneral));
}
void loadModel(int index)
{
memset(&g_model, 0, sizeof(g_model));
theFile.openRlc(FILE_MODEL(index));
theFile.readRlc((uint8_t*)&g_model, sizeof(g_model));
}
#endif
bool eeLoadGeneral()
{
theFile.openRlc(FILE_GENERAL);