ConfigurationStore.cpp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. //! @file
  2. #include "Marlin.h"
  3. #include "planner.h"
  4. #include "temperature.h"
  5. #include "ultralcd.h"
  6. #include "ConfigurationStore.h"
  7. #include "Configuration_prusa.h"
  8. #ifdef MESH_BED_LEVELING
  9. #include "mesh_bed_leveling.h"
  10. #endif
  11. #ifdef TMC2130
  12. #include "tmc2130.h"
  13. #endif
  14. M500_conf cs;
  15. //! @brief Write data to EEPROM
  16. //! @param pos destination in EEPROM, 0 is start
  17. //! @param value value to be written
  18. //! @param size size of type pointed by value
  19. //! @param name name of variable written, used only for debug input if DEBUG_EEPROM_WRITE defined
  20. //! @retval true success
  21. //! @retval false failed
  22. #ifdef DEBUG_EEPROM_WRITE
  23. static bool EEPROM_writeData(uint8_t* pos, uint8_t* value, uint8_t size, const char* name)
  24. #else //DEBUG_EEPROM_WRITE
  25. static bool EEPROM_writeData(uint8_t* pos, uint8_t* value, uint8_t size, const char*)
  26. #endif //DEBUG_EEPROM_WRITE
  27. {
  28. #ifdef DEBUG_EEPROM_WRITE
  29. printf_P(PSTR("EEPROM_WRITE_VAR addr=0x%04x size=0x%02x name=%s\n"), pos, size, name);
  30. #endif //DEBUG_EEPROM_WRITE
  31. while (size--)
  32. {
  33. eeprom_update_byte(pos, *value);
  34. if (eeprom_read_byte(pos) != *value) {
  35. SERIAL_ECHOLNPGM("EEPROM Error");
  36. return false;
  37. }
  38. pos++;
  39. value++;
  40. }
  41. return true;
  42. }
  43. #ifdef DEBUG_EEPROM_READ
  44. static void EEPROM_readData(uint8_t* pos, uint8_t* value, uint8_t size, const char* name)
  45. #else //DEBUG_EEPROM_READ
  46. static void EEPROM_readData(uint8_t* pos, uint8_t* value, uint8_t size, const char*)
  47. #endif //DEBUG_EEPROM_READ
  48. {
  49. #ifdef DEBUG_EEPROM_READ
  50. printf_P(PSTR("EEPROM_READ_VAR addr=0x%04x size=0x%02x name=%s\n"), pos, size, name);
  51. #endif //DEBUG_EEPROM_READ
  52. while(size--)
  53. {
  54. *value = eeprom_read_byte(pos);
  55. pos++;
  56. value++;
  57. }
  58. }
  59. #define EEPROM_VERSION "V2"
  60. #ifdef EEPROM_SETTINGS
  61. void Config_StoreSettings()
  62. {
  63. strcpy(cs.version,"000"); //!< invalidate data first @TODO use erase to save one erase cycle
  64. if (EEPROM_writeData(reinterpret_cast<uint8_t*>(EEPROM_M500_base),reinterpret_cast<uint8_t*>(&cs),sizeof(cs),0), "cs, invalid version")
  65. {
  66. #ifdef TEMP_MODEL
  67. temp_model_save_settings();
  68. #endif
  69. strcpy(cs.version,EEPROM_VERSION); //!< validate data if write succeed
  70. EEPROM_writeData(reinterpret_cast<uint8_t*>(EEPROM_M500_base->version), reinterpret_cast<uint8_t*>(cs.version), sizeof(cs.version), "cs.version valid");
  71. }
  72. SERIAL_ECHO_START;
  73. SERIAL_ECHOLNPGM("Settings Stored");
  74. }
  75. #endif //EEPROM_SETTINGS
  76. #ifndef DISABLE_M503
  77. void Config_PrintSettings(uint8_t level)
  78. { // Always have this function, even with EEPROM_SETTINGS disabled, the current values will be shown
  79. #ifdef TMC2130
  80. printf_P(PSTR(
  81. "%SSteps per unit:\n%S M92 X%.2f Y%.2f Z%.2f E%.2f\n"
  82. "%SUStep resolution: \n%S M350 X%d Y%d Z%d E%d\n"
  83. "%SMaximum feedrates - normal (mm/s):\n%S M203 X%.2f Y%.2f Z%.2f E%.2f\n"
  84. "%SMaximum feedrates - stealth (mm/s):\n%S M203 X%.2f Y%.2f Z%.2f E%.2f\n"
  85. "%SMaximum acceleration - normal (mm/s2):\n%S M201 X%lu Y%lu Z%lu E%lu\n"
  86. "%SMaximum acceleration - stealth (mm/s2):\n%S M201 X%lu Y%lu Z%lu E%lu\n"
  87. "%SAcceleration: P=print, R=retract, T=travel\n%S M204 P%.2f R%.2f T%.2f\n"
  88. "%SAdvanced 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)\n%S M205 S%.2f T%.2f B%.2f X%.2f Y%.2f Z%.2f E%.2f\n"
  89. "%SHome offset (mm):\n%S M206 X%.2f Y%.2f Z%.2f\n"
  90. ),
  91. echomagic, echomagic, cs.axis_steps_per_unit[X_AXIS], cs.axis_steps_per_unit[Y_AXIS], cs.axis_steps_per_unit[Z_AXIS], cs.axis_steps_per_unit[E_AXIS],
  92. echomagic, echomagic, cs.axis_ustep_resolution[X_AXIS], cs.axis_ustep_resolution[Y_AXIS], cs.axis_ustep_resolution[Z_AXIS], cs.axis_ustep_resolution[E_AXIS],
  93. echomagic, echomagic, cs.max_feedrate_normal[X_AXIS], cs.max_feedrate_normal[Y_AXIS], cs.max_feedrate_normal[Z_AXIS], cs.max_feedrate_normal[E_AXIS],
  94. echomagic, echomagic, cs.max_feedrate_silent[X_AXIS], cs.max_feedrate_silent[Y_AXIS], cs.max_feedrate_silent[Z_AXIS], cs.max_feedrate_silent[E_AXIS],
  95. echomagic, echomagic, cs.max_acceleration_units_per_sq_second_normal[X_AXIS], cs.max_acceleration_units_per_sq_second_normal[Y_AXIS], cs.max_acceleration_units_per_sq_second_normal[Z_AXIS], cs.max_acceleration_units_per_sq_second_normal[E_AXIS],
  96. echomagic, echomagic, cs.max_acceleration_units_per_sq_second_silent[X_AXIS], cs.max_acceleration_units_per_sq_second_silent[Y_AXIS], cs.max_acceleration_units_per_sq_second_silent[Z_AXIS], cs.max_acceleration_units_per_sq_second_silent[E_AXIS],
  97. echomagic, echomagic, cs.acceleration, cs.retract_acceleration, cs.travel_acceleration,
  98. echomagic, echomagic, cs.minimumfeedrate, cs.mintravelfeedrate, cs.minsegmenttime, cs.max_jerk[X_AXIS], cs.max_jerk[Y_AXIS], cs.max_jerk[Z_AXIS], cs.max_jerk[E_AXIS],
  99. echomagic, echomagic, cs.add_homing[X_AXIS], cs.add_homing[Y_AXIS], cs.add_homing[Z_AXIS]
  100. #else //TMC2130
  101. printf_P(PSTR(
  102. "%SSteps per unit:\n%S M92 X%.2f Y%.2f Z%.2f E%.2f\n"
  103. "%SMaximum feedrates (mm/s):\n%S M203 X%.2f Y%.2f Z%.2f E%.2f\n"
  104. "%SMaximum acceleration (mm/s2):\n%S M201 X%lu Y%lu Z%lu E%lu\n"
  105. "%SAcceleration: P=print, R=retract, T=travel\n%S M204 P%.2f R%.2f T%.2f\n"
  106. "%SAdvanced 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)\n%S M205 S%.2f T%.2f B%.2f X%.2f Y%.2f Z%.2f E%.2f\n"
  107. "%SHome offset (mm):\n%S M206 X%.2f Y%.2f Z%.2f\n"
  108. ),
  109. echomagic, echomagic, cs.axis_steps_per_unit[X_AXIS], cs.axis_steps_per_unit[Y_AXIS], cs.axis_steps_per_unit[Z_AXIS], cs.axis_steps_per_unit[E_AXIS],
  110. echomagic, echomagic, max_feedrate[X_AXIS], max_feedrate[Y_AXIS], max_feedrate[Z_AXIS], max_feedrate[E_AXIS],
  111. echomagic, echomagic, max_acceleration_units_per_sq_second[X_AXIS], max_acceleration_units_per_sq_second[Y_AXIS], max_acceleration_units_per_sq_second[Z_AXIS], max_acceleration_units_per_sq_second[E_AXIS],
  112. echomagic, echomagic, cs.acceleration, cs.retract_acceleration, cs.travel_acceleration,
  113. echomagic, echomagic, cs.minimumfeedrate, cs.mintravelfeedrate, cs.minsegmenttime, cs.max_jerk[X_AXIS], cs.max_jerk[Y_AXIS], cs.max_jerk[Z_AXIS], cs.max_jerk[E_AXIS],
  114. echomagic, echomagic, cs.add_homing[X_AXIS], cs.add_homing[Y_AXIS], cs.add_homing[Z_AXIS]
  115. #endif //TMC2130
  116. );
  117. #ifdef PIDTEMP
  118. printf_P(PSTR("%SPID settings:\n%S M301 P%.2f I%.2f D%.2f\n"),
  119. echomagic, echomagic, cs.Kp, unscalePID_i(cs.Ki), unscalePID_d(cs.Kd));
  120. #endif
  121. #ifdef PIDTEMPBED
  122. printf_P(PSTR("%SPID heatbed settings:\n%S M304 P%.2f I%.2f D%.2f\n"),
  123. echomagic, echomagic, cs.bedKp, unscalePID_i(cs.bedKi), unscalePID_d(cs.bedKd));
  124. #endif
  125. #ifdef FWRETRACT
  126. printf_P(PSTR(
  127. "%SRetract: S=Length (mm) F:Speed (mm/m) Z: ZLift (mm)\n%S M207 S%.2f F%.2f Z%.2f\n"
  128. "%SRecover: S=Extra length (mm) F:Speed (mm/m)\n%S M208 S%.2f F%.2f\n"
  129. "%SAuto-Retract: S=0 to disable, 1 to interpret extrude-only moves as retracts or recoveries\n%S M209 S%d\n"
  130. ),
  131. echomagic, echomagic, cs.retract_length, cs.retract_feedrate*60, cs.retract_zlift,
  132. echomagic, echomagic, cs.retract_recover_length, cs.retract_recover_feedrate*60,
  133. echomagic, echomagic, (cs.autoretract_enabled ? 1 : 0)
  134. );
  135. #if EXTRUDERS > 1
  136. printf_P(PSTR("%SMulti-extruder settings:\n%S Swap retract length (mm): %.2f\n%S Swap rec. addl. length (mm): %.2f\n"),
  137. echomagic, echomagic, retract_length_swap, echomagic, retract_recover_length_swap);
  138. #endif
  139. if (cs.volumetric_enabled) {
  140. printf_P(PSTR("%SFilament settings:\n%S M200 D%.2f\n"),
  141. echomagic, echomagic, cs.filament_size[0]);
  142. #if EXTRUDERS > 1
  143. printf_P(PSTR("%S M200 T1 D%.2f\n"),
  144. echomagic, echomagic, cs.filament_size[1]);
  145. #if EXTRUDERS > 2
  146. printf_P(PSTR("%S M200 T1 D%.2f\n"),
  147. echomagic, echomagic, cs.filament_size[2]);
  148. #endif
  149. #endif
  150. } else {
  151. printf_P(PSTR("%SFilament settings: Disabled\n"), echomagic);
  152. }
  153. #endif
  154. if (level >= 10) {
  155. #ifdef LIN_ADVANCE
  156. printf_P(PSTR("%SLinear advance settings:%S M900 K%.2f\n"),
  157. echomagic, echomagic, extruder_advance_K);
  158. #endif //LIN_ADVANCE
  159. }
  160. // Arc Interpolation Settings
  161. printf_P(PSTR(
  162. "%SArc Settings: P:Max length(mm) S:Min length (mm) N:Corrections R:Min segments F:Segments/sec.\n%S M214 P%.2f S%.2f N%d R%d F%d\n"),
  163. echomagic, echomagic, cs.mm_per_arc_segment, cs.min_mm_per_arc_segment, cs.n_arc_correction, cs.min_arc_segments, cs.arc_segments_per_sec);
  164. #ifdef TEMP_MODEL
  165. temp_model_report_settings();
  166. #endif
  167. }
  168. #endif
  169. #ifdef EEPROM_SETTINGS
  170. static_assert (EXTRUDERS == 1, "ConfigurationStore M500_conf not implemented for more extruders, fix filament_size array size.");
  171. static_assert (NUM_AXIS == 4, "ConfigurationStore M500_conf not implemented for more axis."
  172. "Fix axis_steps_per_unit max_feedrate_normal max_acceleration_units_per_sq_second_normal max_jerk max_feedrate_silent"
  173. " max_acceleration_units_per_sq_second_silent array size.");
  174. #ifdef ENABLE_AUTO_BED_LEVELING
  175. static_assert (false, "zprobe_zoffset was not initialized in printers in field to -(Z_PROBE_OFFSET_FROM_EXTRUDER), so it contains"
  176. "0.0, if this is not acceptable, increment EEPROM_VERSION to force use default_conf");
  177. #endif
  178. static_assert (sizeof(M500_conf) == 209, "sizeof(M500_conf) has changed, ensure that EEPROM_VERSION has been incremented, "
  179. "or if you added members in the end of struct, ensure that historically uninitialized values will be initialized."
  180. "If this is caused by change to more then 8bit processor, decide whether make this struct packed to save EEPROM,"
  181. "leave as it is to keep fast code, or reorder struct members to pack more tightly.");
  182. static const M500_conf default_conf PROGMEM =
  183. {
  184. EEPROM_VERSION,
  185. DEFAULT_AXIS_STEPS_PER_UNIT,
  186. DEFAULT_MAX_FEEDRATE,
  187. DEFAULT_MAX_ACCELERATION,
  188. DEFAULT_ACCELERATION,
  189. DEFAULT_RETRACT_ACCELERATION,
  190. DEFAULT_MINIMUMFEEDRATE,
  191. DEFAULT_MINTRAVELFEEDRATE,
  192. DEFAULT_MINSEGMENTTIME,
  193. {DEFAULT_XJERK, DEFAULT_YJERK, DEFAULT_ZJERK, DEFAULT_EJERK},
  194. {0,0,0},
  195. -(Z_PROBE_OFFSET_FROM_EXTRUDER),
  196. DEFAULT_Kp,
  197. DEFAULT_Ki*PID_dT,
  198. DEFAULT_Kd/PID_dT,
  199. DEFAULT_bedKp,
  200. DEFAULT_bedKi*PID_dT,
  201. DEFAULT_bedKd/PID_dT,
  202. 0,
  203. false,
  204. RETRACT_LENGTH,
  205. RETRACT_FEEDRATE,
  206. RETRACT_ZLIFT,
  207. RETRACT_RECOVER_LENGTH,
  208. RETRACT_RECOVER_FEEDRATE,
  209. false,
  210. {DEFAULT_NOMINAL_FILAMENT_DIA,
  211. #if EXTRUDERS > 1
  212. DEFAULT_NOMINAL_FILAMENT_DIA,
  213. #if EXTRUDERS > 2
  214. DEFAULT_NOMINAL_FILAMENT_DIA,
  215. #endif
  216. #endif
  217. },
  218. DEFAULT_MAX_FEEDRATE_SILENT,
  219. DEFAULT_MAX_ACCELERATION_SILENT,
  220. #ifdef TMC2130
  221. { TMC2130_USTEPS_XY, TMC2130_USTEPS_XY, TMC2130_USTEPS_Z, TMC2130_USTEPS_E },
  222. #else // TMC2130
  223. {16,16,16,16},
  224. #endif
  225. DEFAULT_TRAVEL_ACCELERATION,
  226. DEFAULT_MM_PER_ARC_SEGMENT,
  227. DEFAULT_MIN_MM_PER_ARC_SEGMENT,
  228. DEFAULT_N_ARC_CORRECTION,
  229. DEFAULT_MIN_ARC_SEGMENTS,
  230. DEFAULT_ARC_SEGMENTS_PER_SEC
  231. };
  232. static bool is_uninitialized(void* addr, uint8_t len)
  233. {
  234. while(len--)
  235. {
  236. if(reinterpret_cast<uint8_t*>(addr)[len] != 0xff)
  237. return false;
  238. }
  239. return true;
  240. }
  241. //! @brief Read M500 configuration
  242. //! @retval true Succeeded. Stored settings retrieved or default settings retrieved in case EEPROM has been erased.
  243. //! @retval false Failed. Default settings has been retrieved, because of older version or corrupted data.
  244. bool Config_RetrieveSettings()
  245. {
  246. bool previous_settings_retrieved = true;
  247. char ver[4]=EEPROM_VERSION;
  248. EEPROM_readData(reinterpret_cast<uint8_t*>(EEPROM_M500_base->version), reinterpret_cast<uint8_t*>(cs.version), sizeof(cs.version), "cs.version"); //read stored version
  249. // SERIAL_ECHOLN("Version: [" << ver << "] Stored version: [" << cs.version << "]");
  250. if (strncmp(ver,cs.version,3) == 0) // version number match
  251. {
  252. EEPROM_readData(reinterpret_cast<uint8_t*>(EEPROM_M500_base), reinterpret_cast<uint8_t*>(&cs), sizeof(cs), "cs");
  253. calculate_extruder_multipliers();
  254. //if max_feedrate_silent and max_acceleration_units_per_sq_second_silent were never stored to eeprom, use default values:
  255. for (uint8_t i = 0; i < (sizeof(cs.max_feedrate_silent)/sizeof(cs.max_feedrate_silent[0])); ++i)
  256. {
  257. const uint32_t erased = 0xffffffff;
  258. if (is_uninitialized(&(cs.max_feedrate_silent[i]), sizeof(float))) {
  259. memcpy_P(&cs.max_feedrate_silent[i],&default_conf.max_feedrate_silent[i], sizeof(cs.max_feedrate_silent[i]));
  260. }
  261. if (erased == cs.max_acceleration_units_per_sq_second_silent[i]) {
  262. memcpy_P(&cs.max_acceleration_units_per_sq_second_silent[i],&default_conf.max_acceleration_units_per_sq_second_silent[i],sizeof(cs.max_acceleration_units_per_sq_second_silent[i]));
  263. }
  264. }
  265. // Initialize arc interpolation settings if they are not already
  266. if (is_uninitialized(&cs.mm_per_arc_segment, sizeof(cs.mm_per_arc_segment))) cs.mm_per_arc_segment = default_conf.mm_per_arc_segment;
  267. if (is_uninitialized(&cs.min_mm_per_arc_segment, sizeof(cs.min_mm_per_arc_segment))) cs.min_mm_per_arc_segment = default_conf.min_mm_per_arc_segment;
  268. if (is_uninitialized(&cs.n_arc_correction, sizeof(cs.n_arc_correction))) cs.n_arc_correction = default_conf.n_arc_correction;
  269. if (is_uninitialized(&cs.min_arc_segments, sizeof(cs.min_arc_segments))) cs.min_arc_segments = default_conf.min_arc_segments;
  270. if (is_uninitialized(&cs.arc_segments_per_sec, sizeof(cs.arc_segments_per_sec))) cs.arc_segments_per_sec = default_conf.arc_segments_per_sec;
  271. #ifdef TMC2130
  272. for (uint8_t j = X_AXIS; j <= Y_AXIS; j++)
  273. {
  274. if (cs.max_feedrate_normal[j] > NORMAL_MAX_FEEDRATE_XY)
  275. cs.max_feedrate_normal[j] = NORMAL_MAX_FEEDRATE_XY;
  276. if (cs.max_feedrate_silent[j] > SILENT_MAX_FEEDRATE_XY)
  277. cs.max_feedrate_silent[j] = SILENT_MAX_FEEDRATE_XY;
  278. if (cs.max_acceleration_units_per_sq_second_normal[j] > NORMAL_MAX_ACCEL_XY)
  279. cs.max_acceleration_units_per_sq_second_normal[j] = NORMAL_MAX_ACCEL_XY;
  280. if (cs.max_acceleration_units_per_sq_second_silent[j] > SILENT_MAX_ACCEL_XY)
  281. cs.max_acceleration_units_per_sq_second_silent[j] = SILENT_MAX_ACCEL_XY;
  282. }
  283. if(cs.axis_ustep_resolution[X_AXIS] == 0xff){ cs.axis_ustep_resolution[X_AXIS] = TMC2130_USTEPS_XY; }
  284. if(cs.axis_ustep_resolution[Y_AXIS] == 0xff){ cs.axis_ustep_resolution[Y_AXIS] = TMC2130_USTEPS_XY; }
  285. if(cs.axis_ustep_resolution[Z_AXIS] == 0xff){ cs.axis_ustep_resolution[Z_AXIS] = TMC2130_USTEPS_Z; }
  286. if(cs.axis_ustep_resolution[E_AXIS] == 0xff){ cs.axis_ustep_resolution[E_AXIS] = TMC2130_USTEPS_E; }
  287. tmc2130_set_res(X_AXIS, cs.axis_ustep_resolution[X_AXIS]);
  288. tmc2130_set_res(Y_AXIS, cs.axis_ustep_resolution[Y_AXIS]);
  289. tmc2130_set_res(Z_AXIS, cs.axis_ustep_resolution[Z_AXIS]);
  290. tmc2130_set_res(E_AXIS, cs.axis_ustep_resolution[E_AXIS]);
  291. #endif //TMC2130
  292. if(is_uninitialized(&cs.travel_acceleration, sizeof(cs.travel_acceleration)))
  293. cs.travel_acceleration = cs.acceleration;
  294. reset_acceleration_rates();
  295. // Call updatePID (similar to when we have processed M301)
  296. updatePID();
  297. #ifdef TEMP_MODEL
  298. temp_model_load_settings();
  299. #endif
  300. SERIAL_ECHO_START;
  301. SERIAL_ECHOLNPGM("Stored settings retrieved");
  302. }
  303. else
  304. {
  305. Config_ResetDefault();
  306. //Return false to inform user that eeprom version was changed and firmware is using default hardcoded settings now.
  307. //In case that storing to eeprom was not used yet, do not inform user that hardcoded settings are used.
  308. if (eeprom_read_byte(reinterpret_cast<uint8_t*>(&(EEPROM_M500_base->version[0]))) != 0xFF ||
  309. eeprom_read_byte(reinterpret_cast<uint8_t*>(&(EEPROM_M500_base->version[1]))) != 0xFF ||
  310. eeprom_read_byte(reinterpret_cast<uint8_t*>(&(EEPROM_M500_base->version[2]))) != 0xFF)
  311. {
  312. previous_settings_retrieved = false;
  313. }
  314. }
  315. #ifdef EEPROM_CHITCHAT
  316. Config_PrintSettings();
  317. #endif
  318. return previous_settings_retrieved;
  319. }
  320. #endif
  321. void Config_ResetDefault()
  322. {
  323. memcpy_P(&cs,&default_conf, sizeof(cs));
  324. // steps per sq second need to be updated to agree with the units per sq second
  325. reset_acceleration_rates();
  326. #ifdef PIDTEMP
  327. updatePID();
  328. #endif//PIDTEMP
  329. #ifdef TEMP_MODEL
  330. temp_model_reset_settings();
  331. #endif
  332. calculate_extruder_multipliers();
  333. SERIAL_ECHO_START;
  334. SERIAL_ECHOLNPGM("Hardcoded Default Settings Loaded");
  335. }