Merge pull request #5527 from MagoKimbra/rc_configuration_store_fix_size

Fix size
2.0.x
Scott Lahteine 8 years ago committed by GitHub
commit 20218e553d

@ -183,7 +183,7 @@ void Config_Postprocess() {
bool eeprom_write_error; bool eeprom_write_error;
void _EEPROM_writeData(int &pos, uint8_t* value, uint8_t size) { void _EEPROM_writeData(int &pos, uint8_t* value, uint16_t size) {
if (eeprom_write_error) return; if (eeprom_write_error) return;
while (size--) { while (size--) {
uint8_t * const p = (uint8_t * const)pos; uint8_t * const p = (uint8_t * const)pos;
@ -205,7 +205,7 @@ void Config_Postprocess() {
}; };
} }
bool eeprom_read_error; bool eeprom_read_error;
void _EEPROM_readData(int &pos, uint8_t* value, uint8_t size) { void _EEPROM_readData(int &pos, uint8_t* value, uint16_t size) {
do { do {
uint8_t c = eeprom_read_byte((unsigned char*)pos); uint8_t c = eeprom_read_byte((unsigned char*)pos);
if (!eeprom_read_error) *value = c; if (!eeprom_read_error) *value = c;

Loading…
Cancel
Save