Browse Source

Use eeprom_update_block instead of a for loop

Saves 32B
Alex Voinea 2 years ago
parent
commit
7e90047bba
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Firmware/Marlin_main.cpp

+ 1 - 3
Firmware/Marlin_main.cpp

@@ -1572,9 +1572,7 @@ void setup()
 #ifdef PAT9125
 	fsensor_setup_interrupt();
 #endif //PAT9125
-	for (uint8_t i = 0; i < 4; i++) {
-		bowden_length[i] = eeprom_read_word((uint16_t*) EEPROM_BOWDEN_LENGTH + i);
-	} 
+	eeprom_update_block(bowden_length, (uint16_t*)EEPROM_BOWDEN_LENGTH, sizeof(bowden_length));
 
 #ifndef DEBUG_DISABLE_STARTMSGS
   KEEPALIVE_STATE(PAUSED_FOR_USER);