Browse Source

Reset filament_size with a loop

Scott Lahteine 9 years ago
parent
commit
70be61d416
1 changed files with 2 additions and 10 deletions
  1. 2
    10
      Marlin/configuration_store.cpp

+ 2
- 10
Marlin/configuration_store.cpp View File

@@ -565,16 +565,8 @@ void Config_ResetDefault() {
565 565
   #endif
566 566
 
567 567
   volumetric_enabled = false;
568
-  filament_size[0] = DEFAULT_NOMINAL_FILAMENT_DIA;
569
-  #if EXTRUDERS > 1
570
-    filament_size[1] = DEFAULT_NOMINAL_FILAMENT_DIA;
571
-    #if EXTRUDERS > 2
572
-      filament_size[2] = DEFAULT_NOMINAL_FILAMENT_DIA;
573
-      #if EXTRUDERS > 3
574
-        filament_size[3] = DEFAULT_NOMINAL_FILAMENT_DIA;
575
-      #endif
576
-    #endif
577
-  #endif
568
+  for (int q=0; q<COUNT(filament_size); q++)
569
+    filament_size[q] = DEFAULT_NOMINAL_FILAMENT_DIA;
578 570
   calculate_volumetric_multipliers();
579 571
 
580 572
   SERIAL_ECHO_START;

Loading…
Cancel
Save