소스 검색

Merge pull request #7251 from thinkyhead/bf_simplify3d_workaround

Patch M23 to work around Simplify3D bug
Scott Lahteine 8 년 전
부모
커밋
504d26341a
5개의 변경된 파일14개의 추가작업 그리고 7개의 파일을 삭제
  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 파일 보기

@@ -109,7 +109,7 @@ script:
109 109
   - restore_configs
110 110
   - opt_enable NUM_SERVOS Z_ENDSTOP_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
111 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 113
   - build_marlin
114 114
   #
115 115
   # Test MESH_BED_LEVELING feature, with LCD

+ 4
- 1
Marlin/Conditionals_LCD.h 파일 보기

@@ -307,7 +307,10 @@
307 307
     #endif
308 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 314
     #define BOOTSCREEN_TIMEOUT 2500
312 315
   #endif
313 316
 

+ 7
- 3
Marlin/Marlin_main.cpp 파일 보기

@@ -6256,7 +6256,11 @@ inline void gcode_M17() {
6256 6256
   /**
6257 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 6266
    * M24: Start or Resume SD Print
@@ -10524,8 +10528,8 @@ void process_next_command() {
10524 10528
 
10525 10529
       #if ENABLED(G38_PROBE_TARGET)
10526 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 10533
           break;
10530 10534
       #endif
10531 10535
 

+ 1
- 1
Marlin/gcode.cpp 파일 보기

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

+ 1
- 1
Marlin/gcode.h 파일 보기

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

Loading…
취소
저장