Remove redundant st_synchronize

It's taken care of by the tool_change function

Change in memory:
Flash: -4 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-04-22 15:09:21 +00:00
parent 64c7202986
commit 065d81ba57
1 changed files with 0 additions and 2 deletions

View File

@ -4,7 +4,6 @@
#include "language.h"
#include "messages.h"
#include "mmu2.h"
#include "stepper.h"
#include "ultralcd.h"
#include <avr/pgmspace.h>
#include <stdint.h>
@ -40,7 +39,6 @@ void TCodes(char *const strchr_pointer, const uint8_t codeValue) {
MMU2::mmu2.tool_change(strchr_pointer[index], MMU2::mmu2.get_current_tool());
}
} else { // Process T0 ... T4
st_synchronize();
if (MMU2::mmu2.Enabled()) {
if (codeValue == MMU2::mmu2.get_current_tool()){
// don't execute the same T-code twice in a row