Skip to content

Commit

Permalink
Stage 1 - Fix for PR bigtreetech#2459
Browse files Browse the repository at this point in the history
  • Loading branch information
kisslorand committed Mar 26, 2022
1 parent 04b6833 commit 723930d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TFT/src/User/API/parseACK.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ void parseACK(void)
storeCmd("M211\n"); // retrieve the software endstops state
storeCmd("M115\n"); // as last command to identify the FW type!
storeCmd("M401 H\n"); // check the state of BLTouch HighSpeed mode
storeCmd("M402\n)"); // if Marlin is older than 12.III.2022 BLTouch probe will deploy by "M401 H" so it needs to be stowed back
storeCmd("M402\n"); // if Marlin is older than 12.III.2022 BLTouch probe will deploy by "M401 H" so it needs to be stowed back
}

infoHost.connected = true;
Expand Down
6 changes: 3 additions & 3 deletions TFT/src/User/Menu/BLTouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void setHSmode(BLT_HS_MODE hsMode)
void menuBLTouch(void)
{
KEY_VALUES key_num = KEY_IDLE;
uint8_t hsModeOld = HS_DISABLED;
BLT_HS_MODE hsModeOld = HS_DISABLED;

MENUITEMS BLTouchItems = {
// title
Expand Down Expand Up @@ -61,7 +61,7 @@ void menuBLTouch(void)
break;

case KEY_ICON_5:
if (infoMachineSettings.firmwareType == FW_MARLIN && bltHSmode != HS_DISABLED)
if (bltHSmode != HS_DISABLED)
storeCmd("M401 S%u\n", !bltHSmode); // Switch HS mode On/Off
// "bltHSmode" will be updated in parseACK() if "M401 Sx" is sent successfully
break;
Expand All @@ -74,7 +74,7 @@ void menuBLTouch(void)
break;
}

if (infoMachineSettings.firmwareType == FW_MARLIN && bltHSmode != hsModeOld)
if (bltHSmode != hsModeOld)
{
hsModeOld = bltHSmode;
BLTouchItems.items[5].icon = (bltHSmode == HS_ON) ? ICON_FAST_SPEED : ICON_SLOW_SPEED;
Expand Down

0 comments on commit 723930d

Please sign in to comment.