Browse Source

Merge pull request #5527 from MagoKimbra/rc_configuration_store_fix_size

Fix size
Scott Lahteine 8 years ago
parent
commit
20218e553d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/configuration_store.cpp

+ 2
- 2
Marlin/configuration_store.cpp View File

@@ -183,7 +183,7 @@ void Config_Postprocess() {
183 183
 
184 184
   bool eeprom_write_error;
185 185
 
186
-  void _EEPROM_writeData(int &pos, uint8_t* value, uint8_t size) {
186
+  void _EEPROM_writeData(int &pos, uint8_t* value, uint16_t size) {
187 187
     if (eeprom_write_error) return;
188 188
     while (size--) {
189 189
       uint8_t * const p = (uint8_t * const)pos;
@@ -205,7 +205,7 @@ void Config_Postprocess() {
205 205
     };
206 206
   }
207 207
   bool eeprom_read_error;
208
-  void _EEPROM_readData(int &pos, uint8_t* value, uint8_t size) {
208
+  void _EEPROM_readData(int &pos, uint8_t* value, uint16_t size) {
209 209
     do {
210 210
       uint8_t c = eeprom_read_byte((unsigned char*)pos);
211 211
       if (!eeprom_read_error) *value = c;

Loading…
Cancel
Save