Several small fixes for MPPT-2410-LC

- Battery temperature set to 25 degC if no external sensor connected
- EEPROM selection added to PCB config file
- UEXT power supply enable added to UEXT init functions

Firmware still gets stuck when OLED display is enabled... Error still to be found!
This commit is contained in:
Martin Jaeger
2019-06-16 15:50:01 +02:00
parent 96d26b5c34
commit ead6f2bffb
7 changed files with 34 additions and 9 deletions
+4 -4
View File
@@ -70,12 +70,12 @@ uint32_t _calc_crc(uint8_t *buf, size_t len)
#endif // UNIT_TEST
#if defined(PIN_EEPROM_SDA) && defined(PIN_EEPROM_SCL)
#if defined(EEPROM_24AA01) || defined(EEPROM_24AA32)
#ifdef MPPT_2420_LC_0V10
#ifdef EEPROM_24AA01
#define EEPROM_PAGE_SIZE 8 // see datasheet of 24AA01
#define EEPROM_ADDRESS_SIZE 1 // bytes
#else
#elif defined(EEPROM_24AA32)
#define EEPROM_PAGE_SIZE 32 // see datasheet of 24AA32
#define EEPROM_ADDRESS_SIZE 2 // bytes
#endif
@@ -243,7 +243,7 @@ void eeprom_restore_data()
}
}
else {
printf("EEPROM: Buffer too small or data layout version changed\n");
printf("EEPROM: Empty or data layout version changed\n");
}
}