Apply const to _EEPROM_writeData value param

This commit is contained in:
Scott Lahteine 2016-12-19 18:50:43 -08:00
parent f724ef5820
commit 6d6a1db6ec

View file

@ -183,7 +183,7 @@ void Config_Postprocess() {
bool eeprom_write_error; bool eeprom_write_error;
void _EEPROM_writeData(int &pos, uint8_t* value, uint16_t size) { void _EEPROM_writeData(int &pos, const 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;