Skip to content
Snippets Groups Projects
Commit 84920e9c authored by daid's avatar daid
Browse files

Merge pull request #449 from Stefanowicz/Marlin_v1

Fix: Build error when EEPROM_SETTINGS is defined and PIDTEMP is undefined
parents c80a78bb 31bb3fb2
No related branches found
No related tags found
No related merge requests found
...@@ -72,9 +72,11 @@ void Config_StoreSettings() ...@@ -72,9 +72,11 @@ void Config_StoreSettings()
EEPROM_WRITE_VAR(i,Ki); EEPROM_WRITE_VAR(i,Ki);
EEPROM_WRITE_VAR(i,Kd); EEPROM_WRITE_VAR(i,Kd);
#else #else
EEPROM_WRITE_VAR(i,3000); float dummy = 3000.0f;
EEPROM_WRITE_VAR(i,0); EEPROM_WRITE_VAR(i,dummy);
EEPROM_WRITE_VAR(i,0); dummy = 0.0f;
EEPROM_WRITE_VAR(i,dummy);
EEPROM_WRITE_VAR(i,dummy);
#endif #endif
char ver2[4]=EEPROM_VERSION; char ver2[4]=EEPROM_VERSION;
i=EEPROM_OFFSET; i=EEPROM_OFFSET;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment