浏览代码

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

Stefanowicz 11 年前
父节点
当前提交
31bb3fb297
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5
    3
      Marlin/ConfigurationStore.cpp

+ 5
- 3
Marlin/ConfigurationStore.cpp 查看文件

@@ -72,9 +72,11 @@ void Config_StoreSettings()
72 72
     EEPROM_WRITE_VAR(i,Ki);
73 73
     EEPROM_WRITE_VAR(i,Kd);
74 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 80
   #endif
79 81
   char ver2[4]=EEPROM_VERSION;
80 82
   i=EEPROM_OFFSET;

正在加载...
取消
保存