Przeglądaj źródła

Merge pull request #7251 from thinkyhead/bf_simplify3d_workaround

Patch M23 to work around Simplify3D bug
Scott Lahteine 8 lat temu
rodzic
commit
504d26341a
5 zmienionych plików z 14 dodań i 7 usunięć
  1. 1
    1
      .travis.yml
  2. 4
    1
      Marlin/Conditionals_LCD.h
  3. 7
    3
      Marlin/Marlin_main.cpp
  4. 1
    1
      Marlin/gcode.cpp
  5. 1
    1
      Marlin/gcode.h

+ 1
- 1
.travis.yml Wyświetl plik

109
   - restore_configs
109
   - restore_configs
110
   - opt_enable NUM_SERVOS Z_ENDSTOP_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
110
   - opt_enable NUM_SERVOS Z_ENDSTOP_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
111
   - opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT
111
   - opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT
112
-  - opt_enable_adv EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP
112
+  - opt_enable_adv EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET
113
   - build_marlin
113
   - build_marlin
114
   #
114
   #
115
   # Test MESH_BED_LEVELING feature, with LCD
115
   # Test MESH_BED_LEVELING feature, with LCD

+ 4
- 1
Marlin/Conditionals_LCD.h Wyświetl plik

307
     #endif
307
     #endif
308
   #endif
308
   #endif
309
 
309
 
310
-  #ifndef BOOTSCREEN_TIMEOUT
310
+  // Boot screens
311
+  #if DISABLED(ULTRA_LCD)
312
+    #undef SHOW_BOOTSCREEN
313
+  #elif !defined(BOOTSCREEN_TIMEOUT)
311
     #define BOOTSCREEN_TIMEOUT 2500
314
     #define BOOTSCREEN_TIMEOUT 2500
312
   #endif
315
   #endif
313
 
316
 

+ 7
- 3
Marlin/Marlin_main.cpp Wyświetl plik

6256
   /**
6256
   /**
6257
    * M23: Open a file
6257
    * M23: Open a file
6258
    */
6258
    */
6259
-  inline void gcode_M23() { card.openFile(parser.string_arg, true); }
6259
+  inline void gcode_M23() {
6260
+    // Simplify3D includes the size, so zero out all spaces (#7227)
6261
+    for (char *fn = parser.string_arg; *fn; ++fn) if (*fn == ' ') *fn = '\0';
6262
+    card.openFile(parser.string_arg, true); 
6263
+  }
6260
 
6264
 
6261
   /**
6265
   /**
6262
    * M24: Start or Resume SD Print
6266
    * M24: Start or Resume SD Print
10524
 
10528
 
10525
       #if ENABLED(G38_PROBE_TARGET)
10529
       #if ENABLED(G38_PROBE_TARGET)
10526
         case 38: // G38.2 & G38.3
10530
         case 38: // G38.2 & G38.3
10527
-          if (subcode == 2 || subcode == 3)
10528
-            gcode_G38(subcode == 2);
10531
+          if (parser.subcode == 2 || parser.subcode == 3)
10532
+            gcode_G38(parser.subcode == 2);
10529
           break;
10533
           break;
10530
       #endif
10534
       #endif
10531
 
10535
 

+ 1
- 1
Marlin/gcode.cpp Wyświetl plik

46
 char GCodeParser::command_letter;
46
 char GCodeParser::command_letter;
47
 int GCodeParser::codenum;
47
 int GCodeParser::codenum;
48
 #if USE_GCODE_SUBCODES
48
 #if USE_GCODE_SUBCODES
49
-  int GCodeParser::subcode;
49
+  uint8_t GCodeParser::subcode;
50
 #endif
50
 #endif
51
 
51
 
52
 #if ENABLED(FASTER_GCODE_PARSER)
52
 #if ENABLED(FASTER_GCODE_PARSER)

+ 1
- 1
Marlin/gcode.h Wyświetl plik

91
   static char command_letter;             // G, M, or T
91
   static char command_letter;             // G, M, or T
92
   static int codenum;                     // 123
92
   static int codenum;                     // 123
93
   #if USE_GCODE_SUBCODES
93
   #if USE_GCODE_SUBCODES
94
-    static int subcode;                   // .1
94
+    static uint8_t subcode;               // .1
95
   #endif
95
   #endif
96
 
96
 
97
   #if ENABLED(DEBUG_GCODE_PARSER)
97
   #if ENABLED(DEBUG_GCODE_PARSER)

Ładowanie…
Anuluj
Zapisz