Browse Source

Fix Toolchange (!no_move) return to status (#16699)

InsanityAutomation 5 years ago
parent
commit
9bb8176d34
No account linked to committer's email address
2 changed files with 5 additions and 1 deletions
  1. 1
    1
      Marlin/src/feature/binary_protocol.h
  2. 4
    0
      Marlin/src/module/tool_change.cpp

+ 1
- 1
Marlin/src/feature/binary_protocol.h View File

@@ -242,7 +242,7 @@ public:
242 242
       uint8_t protocol() { return (meta >> 4) & 0xF; }
243 243
       uint8_t type() { return meta & 0xF; }
244 244
       void reset() { token = 0; sync = 0; meta = 0; size = 0; checksum = 0; }
245
-      uint8_t data[1];
245
+      uint8_t data[2];
246 246
     };
247 247
 
248 248
     union Footer {

+ 4
- 0
Marlin/src/module/tool_change.cpp View File

@@ -821,6 +821,10 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
821 821
       if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("No move (not homed)");
822 822
     }
823 823
 
824
+    #if HAS_LCD_MENU
825
+      if (!no_move) ui.return_to_status();
826
+    #endif
827
+
824 828
     #if ENABLED(DUAL_X_CARRIAGE)
825 829
       const bool idex_full_control = dual_x_carriage_mode == DXC_FULL_CONTROL_MODE;
826 830
     #else

Loading…
Cancel
Save