Commit 707ccd4a authored by Simone Primarosa's avatar Simone Primarosa

Added ability to write configuration on SD

parent b4d3d483
...@@ -825,7 +825,7 @@ void loop() { ...@@ -825,7 +825,7 @@ void loop() {
char *command = command_queue[cmd_queue_index_r]; char *command = command_queue[cmd_queue_index_r];
if (strstr_P(command, PSTR("M29"))) { if (strstr_P(command, PSTR("M29"))) {
// M29 closes the file // M29 closes the file
card.closefile(); card.closeFile();
SERIAL_PROTOCOLLNPGM(MSG_FILE_SAVED); SERIAL_PROTOCOLLNPGM(MSG_FILE_SAVED);
} }
else { else {
...@@ -3791,7 +3791,7 @@ inline void gcode_M17() { ...@@ -3791,7 +3791,7 @@ inline void gcode_M17() {
*/ */
inline void gcode_M30() { inline void gcode_M30() {
if (card.cardOK) { if (card.cardOK) {
card.closefile(); card.closeFile();
char* starpos = strchr(strchr_pointer + 4, '*'); char* starpos = strchr(strchr_pointer + 4, '*');
if (starpos) { if (starpos) {
char* npos = strchr(command_queue[cmd_queue_index_r], 'N'); char* npos = strchr(command_queue[cmd_queue_index_r], 'N');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment