Browse Source

Fix: Build error when EEPROM_SETTINGS is defined and PIDTEMP is undefined

Stefanowicz 11 years ago
parent
commit
31bb3fb297
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      Marlin/ConfigurationStore.cpp

+ 5
- 3
Marlin/ConfigurationStore.cpp View File

72
     EEPROM_WRITE_VAR(i,Ki);
72
     EEPROM_WRITE_VAR(i,Ki);
73
     EEPROM_WRITE_VAR(i,Kd);
73
     EEPROM_WRITE_VAR(i,Kd);
74
   #else
74
   #else
75
-    EEPROM_WRITE_VAR(i,3000);
76
-    EEPROM_WRITE_VAR(i,0);
77
-    EEPROM_WRITE_VAR(i,0);
75
+		float dummy = 3000.0f;
76
+    EEPROM_WRITE_VAR(i,dummy);
77
+		dummy = 0.0f;
78
+    EEPROM_WRITE_VAR(i,dummy);
79
+    EEPROM_WRITE_VAR(i,dummy);
78
   #endif
80
   #endif
79
   char ver2[4]=EEPROM_VERSION;
81
   char ver2[4]=EEPROM_VERSION;
80
   i=EEPROM_OFFSET;
82
   i=EEPROM_OFFSET;

Loading…
Cancel
Save