ConfigurationStore.cpp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. #include "Marlin.h"
  2. #include "planner.h"
  3. #include "temperature.h"
  4. #include "ultralcd.h"
  5. #include "ConfigurationStore.h"
  6. #include "Configuration_prusa.h"
  7. void _EEPROM_writeData(int &pos, uint8_t* value, uint8_t size)
  8. {
  9. do
  10. {
  11. eeprom_write_byte((unsigned char*)pos, *value);
  12. pos++;
  13. value++;
  14. }while(--size);
  15. }
  16. #define EEPROM_WRITE_VAR(pos, value) _EEPROM_writeData(pos, (uint8_t*)&value, sizeof(value))
  17. void _EEPROM_readData(int &pos, uint8_t* value, uint8_t size)
  18. {
  19. do
  20. {
  21. *value = eeprom_read_byte((unsigned char*)pos);
  22. pos++;
  23. value++;
  24. }while(--size);
  25. }
  26. #define EEPROM_READ_VAR(pos, value) _EEPROM_readData(pos, (uint8_t*)&value, sizeof(value))
  27. //======================================================================================
  28. #define EEPROM_OFFSET 100
  29. // IMPORTANT: Whenever there are changes made to the variables stored in EEPROM
  30. // in the functions below, also increment the version number. This makes sure that
  31. // the default values are used whenever there is a change to the data, to prevent
  32. // wrong data being written to the variables.
  33. // ALSO: always make sure the variables in the Store and retrieve sections are in the same order.
  34. #define EEPROM_VERSION "V13"
  35. #ifdef EEPROM_SETTINGS
  36. void Config_StoreSettings()
  37. {
  38. char ver[4]= "000";
  39. int i=EEPROM_OFFSET;
  40. EEPROM_WRITE_VAR(i,ver); // invalidate data first
  41. EEPROM_WRITE_VAR(i,axis_steps_per_unit);
  42. EEPROM_WRITE_VAR(i,max_feedrate);
  43. EEPROM_WRITE_VAR(i,max_acceleration_units_per_sq_second);
  44. EEPROM_WRITE_VAR(i,acceleration);
  45. EEPROM_WRITE_VAR(i,retract_acceleration);
  46. EEPROM_WRITE_VAR(i,minimumfeedrate);
  47. EEPROM_WRITE_VAR(i,mintravelfeedrate);
  48. EEPROM_WRITE_VAR(i,minsegmenttime);
  49. EEPROM_WRITE_VAR(i,max_xy_jerk);
  50. EEPROM_WRITE_VAR(i,max_z_jerk);
  51. EEPROM_WRITE_VAR(i,max_e_jerk);
  52. EEPROM_WRITE_VAR(i,add_homing);
  53. #ifdef DELTA
  54. EEPROM_WRITE_VAR(i,endstop_adj);
  55. EEPROM_WRITE_VAR(i,delta_radius);
  56. EEPROM_WRITE_VAR(i,delta_diagonal_rod);
  57. EEPROM_WRITE_VAR(i,delta_segments_per_second);
  58. #endif
  59. #ifndef ULTIPANEL
  60. int plaPreheatHotendTemp = PLA_PREHEAT_HOTEND_TEMP, plaPreheatHPBTemp = PLA_PREHEAT_HPB_TEMP, plaPreheatFanSpeed = PLA_PREHEAT_FAN_SPEED;
  61. int absPreheatHotendTemp = ABS_PREHEAT_HOTEND_TEMP, absPreheatHPBTemp = ABS_PREHEAT_HPB_TEMP, absPreheatFanSpeed = ABS_PREHEAT_FAN_SPEED;
  62. #endif
  63. EEPROM_WRITE_VAR(i,plaPreheatHotendTemp);
  64. EEPROM_WRITE_VAR(i,plaPreheatHPBTemp);
  65. EEPROM_WRITE_VAR(i,plaPreheatFanSpeed);
  66. EEPROM_WRITE_VAR(i,absPreheatHotendTemp);
  67. EEPROM_WRITE_VAR(i,absPreheatHPBTemp);
  68. EEPROM_WRITE_VAR(i,absPreheatFanSpeed);
  69. EEPROM_WRITE_VAR(i,zprobe_zoffset);
  70. #ifdef PIDTEMP
  71. EEPROM_WRITE_VAR(i,Kp);
  72. EEPROM_WRITE_VAR(i,Ki);
  73. EEPROM_WRITE_VAR(i,Kd);
  74. #else
  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);
  80. #endif
  81. #ifndef DOGLCD
  82. int lcd_contrast = 32;
  83. #endif
  84. EEPROM_WRITE_VAR(i,lcd_contrast);
  85. #ifdef SCARA
  86. EEPROM_WRITE_VAR(i,axis_scaling); // Add scaling for SCARA
  87. #endif
  88. #ifdef FWRETRACT
  89. EEPROM_WRITE_VAR(i,autoretract_enabled);
  90. EEPROM_WRITE_VAR(i,retract_length);
  91. #if EXTRUDERS > 1
  92. EEPROM_WRITE_VAR(i,retract_length_swap);
  93. #endif
  94. EEPROM_WRITE_VAR(i,retract_feedrate);
  95. EEPROM_WRITE_VAR(i,retract_zlift);
  96. EEPROM_WRITE_VAR(i,retract_recover_length);
  97. #if EXTRUDERS > 1
  98. EEPROM_WRITE_VAR(i,retract_recover_length_swap);
  99. #endif
  100. EEPROM_WRITE_VAR(i,retract_recover_feedrate);
  101. #endif
  102. // Save filament sizes
  103. EEPROM_WRITE_VAR(i, volumetric_enabled);
  104. EEPROM_WRITE_VAR(i, filament_size[0]);
  105. #if EXTRUDERS > 1
  106. EEPROM_WRITE_VAR(i, filament_size[1]);
  107. #if EXTRUDERS > 2
  108. EEPROM_WRITE_VAR(i, filament_size[2]);
  109. #endif
  110. #endif
  111. char ver2[4]=EEPROM_VERSION;
  112. i=EEPROM_OFFSET;
  113. EEPROM_WRITE_VAR(i,ver2); // validate data
  114. SERIAL_ECHO_START;
  115. SERIAL_ECHOLNPGM("Settings Stored");
  116. }
  117. #endif //EEPROM_SETTINGS
  118. #ifndef DISABLE_M503
  119. void Config_PrintSettings()
  120. { // Always have this function, even with EEPROM_SETTINGS disabled, the current values will be shown
  121. SERIAL_ECHO_START;
  122. SERIAL_ECHOLNPGM("Steps per unit:");
  123. SERIAL_ECHO_START;
  124. SERIAL_ECHOPAIR(" M92 X",axis_steps_per_unit[X_AXIS]);
  125. SERIAL_ECHOPAIR(" Y",axis_steps_per_unit[Y_AXIS]);
  126. SERIAL_ECHOPAIR(" Z",axis_steps_per_unit[Z_AXIS]);
  127. SERIAL_ECHOPAIR(" E",axis_steps_per_unit[E_AXIS]);
  128. SERIAL_ECHOLN("");
  129. SERIAL_ECHO_START;
  130. #ifdef SCARA
  131. SERIAL_ECHOLNPGM("Scaling factors:");
  132. SERIAL_ECHO_START;
  133. SERIAL_ECHOPAIR(" M365 X",axis_scaling[X_AXIS]);
  134. SERIAL_ECHOPAIR(" Y",axis_scaling[Y_AXIS]);
  135. SERIAL_ECHOPAIR(" Z",axis_scaling[Z_AXIS]);
  136. SERIAL_ECHOLN("");
  137. SERIAL_ECHO_START;
  138. #endif
  139. SERIAL_ECHOLNPGM("Maximum feedrates (mm/s):");
  140. SERIAL_ECHO_START;
  141. SERIAL_ECHOPAIR(" M203 X", max_feedrate[X_AXIS]);
  142. SERIAL_ECHOPAIR(" Y", max_feedrate[Y_AXIS]);
  143. SERIAL_ECHOPAIR(" Z", max_feedrate[Z_AXIS]);
  144. SERIAL_ECHOPAIR(" E", max_feedrate[E_AXIS]);
  145. SERIAL_ECHOLN("");
  146. SERIAL_ECHO_START;
  147. SERIAL_ECHOLNPGM("Maximum Acceleration (mm/s2):");
  148. SERIAL_ECHO_START;
  149. SERIAL_ECHOPAIR(" M201 X" ,max_acceleration_units_per_sq_second[X_AXIS] );
  150. SERIAL_ECHOPAIR(" Y" , max_acceleration_units_per_sq_second[Y_AXIS] );
  151. SERIAL_ECHOPAIR(" Z" ,max_acceleration_units_per_sq_second[Z_AXIS] );
  152. SERIAL_ECHOPAIR(" E" ,max_acceleration_units_per_sq_second[E_AXIS]);
  153. SERIAL_ECHOLN("");
  154. SERIAL_ECHO_START;
  155. SERIAL_ECHOLNPGM("Acceleration: S=acceleration, T=retract acceleration");
  156. SERIAL_ECHO_START;
  157. SERIAL_ECHOPAIR(" M204 S",acceleration );
  158. SERIAL_ECHOPAIR(" T" ,retract_acceleration);
  159. SERIAL_ECHOLN("");
  160. SERIAL_ECHO_START;
  161. SERIAL_ECHOLNPGM("Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum XY jerk (mm/s), Z=maximum Z jerk (mm/s), E=maximum E jerk (mm/s)");
  162. SERIAL_ECHO_START;
  163. SERIAL_ECHOPAIR(" M205 S",minimumfeedrate );
  164. SERIAL_ECHOPAIR(" T" ,mintravelfeedrate );
  165. SERIAL_ECHOPAIR(" B" ,minsegmenttime );
  166. SERIAL_ECHOPAIR(" X" ,max_xy_jerk );
  167. SERIAL_ECHOPAIR(" Z" ,max_z_jerk);
  168. SERIAL_ECHOPAIR(" E" ,max_e_jerk);
  169. SERIAL_ECHOLN("");
  170. SERIAL_ECHO_START;
  171. SERIAL_ECHOLNPGM("Home offset (mm):");
  172. SERIAL_ECHO_START;
  173. SERIAL_ECHOPAIR(" M206 X",add_homing[X_AXIS] );
  174. SERIAL_ECHOPAIR(" Y" ,add_homing[Y_AXIS] );
  175. SERIAL_ECHOPAIR(" Z" ,add_homing[Z_AXIS] );
  176. SERIAL_ECHOLN("");
  177. #ifdef DELTA
  178. SERIAL_ECHO_START;
  179. SERIAL_ECHOLNPGM("Endstop adjustement (mm):");
  180. SERIAL_ECHO_START;
  181. SERIAL_ECHOPAIR(" M666 X",endstop_adj[X_AXIS] );
  182. SERIAL_ECHOPAIR(" Y" ,endstop_adj[Y_AXIS] );
  183. SERIAL_ECHOPAIR(" Z" ,endstop_adj[Z_AXIS] );
  184. SERIAL_ECHOLN("");
  185. SERIAL_ECHO_START;
  186. SERIAL_ECHOLNPGM("Delta settings: L=delta_diagonal_rod, R=delta_radius, S=delta_segments_per_second");
  187. SERIAL_ECHO_START;
  188. SERIAL_ECHOPAIR(" M665 L",delta_diagonal_rod );
  189. SERIAL_ECHOPAIR(" R" ,delta_radius );
  190. SERIAL_ECHOPAIR(" S" ,delta_segments_per_second );
  191. SERIAL_ECHOLN("");
  192. #endif
  193. #ifdef PIDTEMP
  194. SERIAL_ECHO_START;
  195. SERIAL_ECHOLNPGM("PID settings:");
  196. SERIAL_ECHO_START;
  197. SERIAL_ECHOPAIR(" M301 P",Kp);
  198. SERIAL_ECHOPAIR(" I" ,unscalePID_i(Ki));
  199. SERIAL_ECHOPAIR(" D" ,unscalePID_d(Kd));
  200. SERIAL_ECHOLN("");
  201. #endif
  202. #ifdef FWRETRACT
  203. SERIAL_ECHO_START;
  204. SERIAL_ECHOLNPGM("Retract: S=Length (mm) F:Speed (mm/m) Z: ZLift (mm)");
  205. SERIAL_ECHO_START;
  206. SERIAL_ECHOPAIR(" M207 S",retract_length);
  207. SERIAL_ECHOPAIR(" F" ,retract_feedrate*60);
  208. SERIAL_ECHOPAIR(" Z" ,retract_zlift);
  209. SERIAL_ECHOLN("");
  210. SERIAL_ECHO_START;
  211. SERIAL_ECHOLNPGM("Recover: S=Extra length (mm) F:Speed (mm/m)");
  212. SERIAL_ECHO_START;
  213. SERIAL_ECHOPAIR(" M208 S",retract_recover_length);
  214. SERIAL_ECHOPAIR(" F", retract_recover_feedrate*60);
  215. SERIAL_ECHOLN("");
  216. SERIAL_ECHO_START;
  217. SERIAL_ECHOLNPGM("Auto-Retract: S=0 to disable, 1 to interpret extrude-only moves as retracts or recoveries");
  218. SERIAL_ECHO_START;
  219. SERIAL_ECHOPAIR(" M209 S", (unsigned long)(autoretract_enabled ? 1 : 0));
  220. SERIAL_ECHOLN("");
  221. #if EXTRUDERS > 1
  222. SERIAL_ECHO_START;
  223. SERIAL_ECHOLNPGM("Multi-extruder settings:");
  224. SERIAL_ECHO_START;
  225. SERIAL_ECHOPAIR(" Swap retract length (mm): ", retract_length_swap);
  226. SERIAL_ECHOLN("");
  227. SERIAL_ECHO_START;
  228. SERIAL_ECHOPAIR(" Swap rec. addl. length (mm): ", retract_recover_length_swap);
  229. SERIAL_ECHOLN("");
  230. #endif
  231. SERIAL_ECHO_START;
  232. if (volumetric_enabled) {
  233. SERIAL_ECHOLNPGM("Filament settings:");
  234. SERIAL_ECHO_START;
  235. SERIAL_ECHOPAIR(" M200 D", filament_size[0]);
  236. SERIAL_ECHOLN("");
  237. #if EXTRUDERS > 1
  238. SERIAL_ECHO_START;
  239. SERIAL_ECHOPAIR(" M200 T1 D", filament_size[1]);
  240. SERIAL_ECHOLN("");
  241. #if EXTRUDERS > 2
  242. SERIAL_ECHO_START;
  243. SERIAL_ECHOPAIR(" M200 T2 D", filament_size[2]);
  244. SERIAL_ECHOLN("");
  245. #endif
  246. #endif
  247. } else {
  248. SERIAL_ECHOLNPGM("Filament settings: Disabled");
  249. }
  250. #endif
  251. }
  252. #endif
  253. #ifdef EEPROM_SETTINGS
  254. void Config_RetrieveSettings()
  255. {
  256. int i=EEPROM_OFFSET;
  257. char stored_ver[4];
  258. char ver[4]=EEPROM_VERSION;
  259. EEPROM_READ_VAR(i,stored_ver); //read stored version
  260. // SERIAL_ECHOLN("Version: [" << ver << "] Stored version: [" << stored_ver << "]");
  261. if (strncmp(ver,stored_ver,3) == 0)
  262. {
  263. // version number match
  264. EEPROM_READ_VAR(i,axis_steps_per_unit);
  265. EEPROM_READ_VAR(i,max_feedrate);
  266. EEPROM_READ_VAR(i,max_acceleration_units_per_sq_second);
  267. // steps per sq second need to be updated to agree with the units per sq second (as they are what is used in the planner)
  268. reset_acceleration_rates();
  269. EEPROM_READ_VAR(i,acceleration);
  270. EEPROM_READ_VAR(i,retract_acceleration);
  271. EEPROM_READ_VAR(i,minimumfeedrate);
  272. EEPROM_READ_VAR(i,mintravelfeedrate);
  273. EEPROM_READ_VAR(i,minsegmenttime);
  274. EEPROM_READ_VAR(i,max_xy_jerk);
  275. EEPROM_READ_VAR(i,max_z_jerk);
  276. EEPROM_READ_VAR(i,max_e_jerk);
  277. EEPROM_READ_VAR(i,add_homing);
  278. #ifdef DELTA
  279. EEPROM_READ_VAR(i,endstop_adj);
  280. EEPROM_READ_VAR(i,delta_radius);
  281. EEPROM_READ_VAR(i,delta_diagonal_rod);
  282. EEPROM_READ_VAR(i,delta_segments_per_second);
  283. #endif
  284. #ifndef ULTIPANEL
  285. int plaPreheatHotendTemp, plaPreheatHPBTemp, plaPreheatFanSpeed;
  286. int absPreheatHotendTemp, absPreheatHPBTemp, absPreheatFanSpeed;
  287. #endif
  288. EEPROM_READ_VAR(i,plaPreheatHotendTemp);
  289. EEPROM_READ_VAR(i,plaPreheatHPBTemp);
  290. EEPROM_READ_VAR(i,plaPreheatFanSpeed);
  291. EEPROM_READ_VAR(i,absPreheatHotendTemp);
  292. EEPROM_READ_VAR(i,absPreheatHPBTemp);
  293. EEPROM_READ_VAR(i,absPreheatFanSpeed);
  294. EEPROM_READ_VAR(i,zprobe_zoffset);
  295. #ifndef PIDTEMP
  296. float Kp,Ki,Kd;
  297. #endif
  298. // do not need to scale PID values as the values in EEPROM are already scaled
  299. EEPROM_READ_VAR(i,Kp);
  300. EEPROM_READ_VAR(i,Ki);
  301. EEPROM_READ_VAR(i,Kd);
  302. #ifndef DOGLCD
  303. int lcd_contrast;
  304. #endif
  305. EEPROM_READ_VAR(i,lcd_contrast);
  306. #ifdef SCARA
  307. EEPROM_READ_VAR(i,axis_scaling);
  308. #endif
  309. #ifdef FWRETRACT
  310. EEPROM_READ_VAR(i,autoretract_enabled);
  311. EEPROM_READ_VAR(i,retract_length);
  312. #if EXTRUDERS > 1
  313. EEPROM_READ_VAR(i,retract_length_swap);
  314. #endif
  315. EEPROM_READ_VAR(i,retract_feedrate);
  316. EEPROM_READ_VAR(i,retract_zlift);
  317. EEPROM_READ_VAR(i,retract_recover_length);
  318. #if EXTRUDERS > 1
  319. EEPROM_READ_VAR(i,retract_recover_length_swap);
  320. #endif
  321. EEPROM_READ_VAR(i,retract_recover_feedrate);
  322. #endif
  323. EEPROM_READ_VAR(i, volumetric_enabled);
  324. EEPROM_READ_VAR(i, filament_size[0]);
  325. #if EXTRUDERS > 1
  326. EEPROM_READ_VAR(i, filament_size[1]);
  327. #if EXTRUDERS > 2
  328. EEPROM_READ_VAR(i, filament_size[2]);
  329. #endif
  330. #endif
  331. calculate_volumetric_multipliers();
  332. // Call updatePID (similar to when we have processed M301)
  333. updatePID();
  334. SERIAL_ECHO_START;
  335. SERIAL_ECHOLNPGM("Stored settings retrieved");
  336. }
  337. else
  338. {
  339. Config_ResetDefault();
  340. }
  341. #ifdef EEPROM_CHITCHAT
  342. Config_PrintSettings();
  343. #endif
  344. }
  345. #endif
  346. void Config_ResetDefault()
  347. {
  348. float tmp1[]=DEFAULT_AXIS_STEPS_PER_UNIT;
  349. float tmp2[]=DEFAULT_MAX_FEEDRATE;
  350. long tmp3[]=DEFAULT_MAX_ACCELERATION;
  351. for (short i=0;i<4;i++)
  352. {
  353. axis_steps_per_unit[i]=tmp1[i];
  354. max_feedrate[i]=tmp2[i];
  355. max_acceleration_units_per_sq_second[i]=tmp3[i];
  356. #ifdef SCARA
  357. axis_scaling[i]=1;
  358. #endif
  359. }
  360. // steps per sq second need to be updated to agree with the units per sq second
  361. reset_acceleration_rates();
  362. acceleration=DEFAULT_ACCELERATION;
  363. retract_acceleration=DEFAULT_RETRACT_ACCELERATION;
  364. minimumfeedrate=DEFAULT_MINIMUMFEEDRATE;
  365. minsegmenttime=DEFAULT_MINSEGMENTTIME;
  366. mintravelfeedrate=DEFAULT_MINTRAVELFEEDRATE;
  367. max_xy_jerk=DEFAULT_XYJERK;
  368. max_z_jerk=DEFAULT_ZJERK;
  369. max_e_jerk=DEFAULT_EJERK;
  370. add_homing[X_AXIS] = add_homing[Y_AXIS] = add_homing[Z_AXIS] = 0;
  371. #ifdef DELTA
  372. endstop_adj[X_AXIS] = endstop_adj[Y_AXIS] = endstop_adj[Z_AXIS] = 0;
  373. delta_radius= DELTA_RADIUS;
  374. delta_diagonal_rod= DELTA_DIAGONAL_ROD;
  375. delta_segments_per_second= DELTA_SEGMENTS_PER_SECOND;
  376. recalc_delta_settings(delta_radius, delta_diagonal_rod);
  377. #endif
  378. #ifdef ULTIPANEL
  379. plaPreheatHotendTemp = PLA_PREHEAT_HOTEND_TEMP;
  380. plaPreheatHPBTemp = PLA_PREHEAT_HPB_TEMP;
  381. plaPreheatFanSpeed = PLA_PREHEAT_FAN_SPEED;
  382. absPreheatHotendTemp = ABS_PREHEAT_HOTEND_TEMP;
  383. absPreheatHPBTemp = ABS_PREHEAT_HPB_TEMP;
  384. absPreheatFanSpeed = ABS_PREHEAT_FAN_SPEED;
  385. #endif
  386. #ifdef ENABLE_AUTO_BED_LEVELING
  387. zprobe_zoffset = -Z_PROBE_OFFSET_FROM_EXTRUDER;
  388. #endif
  389. #ifdef DOGLCD
  390. lcd_contrast = DEFAULT_LCD_CONTRAST;
  391. #endif
  392. #ifdef PIDTEMP
  393. Kp = DEFAULT_Kp;
  394. Ki = scalePID_i(DEFAULT_Ki);
  395. Kd = scalePID_d(DEFAULT_Kd);
  396. // call updatePID (similar to when we have processed M301)
  397. updatePID();
  398. #ifdef PID_ADD_EXTRUSION_RATE
  399. Kc = DEFAULT_Kc;
  400. #endif//PID_ADD_EXTRUSION_RATE
  401. #endif//PIDTEMP
  402. #ifdef FWRETRACT
  403. autoretract_enabled = false;
  404. retract_length = RETRACT_LENGTH;
  405. #if EXTRUDERS > 1
  406. retract_length_swap = RETRACT_LENGTH_SWAP;
  407. #endif
  408. retract_feedrate = RETRACT_FEEDRATE;
  409. retract_zlift = RETRACT_ZLIFT;
  410. retract_recover_length = RETRACT_RECOVER_LENGTH;
  411. #if EXTRUDERS > 1
  412. retract_recover_length_swap = RETRACT_RECOVER_LENGTH_SWAP;
  413. #endif
  414. retract_recover_feedrate = RETRACT_RECOVER_FEEDRATE;
  415. #endif
  416. volumetric_enabled = false;
  417. filament_size[0] = DEFAULT_NOMINAL_FILAMENT_DIA;
  418. #if EXTRUDERS > 1
  419. filament_size[1] = DEFAULT_NOMINAL_FILAMENT_DIA;
  420. #if EXTRUDERS > 2
  421. filament_size[2] = DEFAULT_NOMINAL_FILAMENT_DIA;
  422. #endif
  423. #endif
  424. calculate_volumetric_multipliers();
  425. SERIAL_ECHO_START;
  426. SERIAL_ECHOLNPGM("Hardcoded Default Settings Loaded");
  427. }