Browse Source

Merge pull request #3304 from gudnimg/gudni-fix-compile-issue-v2

Fix build error when `TMC2130_SERVICE_CODES_M910_M918` is enabled
DRracer 2 years ago
parent
commit
3228f9d03c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Firmware/Marlin_main.cpp

+ 3 - 3
Firmware/Marlin_main.cpp

@@ -8625,7 +8625,7 @@ Sigma_Exit:
     */
 	case 910:
     {
-		tmc2130_init();
+		tmc2130_init(TMCInitParams(false, FarmOrUserECool()));
     }
     break;
 
@@ -8692,7 +8692,7 @@ Sigma_Exit:
     {
 		tmc2130_mode = TMC2130_MODE_NORMAL;
 		update_mode_profile();
-		tmc2130_init();
+		tmc2130_init(TMCInitParams(false, FarmOrUserECool()));
     }
     break;
 
@@ -8704,7 +8704,7 @@ Sigma_Exit:
     {
 		tmc2130_mode = TMC2130_MODE_SILENT;
 		update_mode_profile();
-		tmc2130_init();
+		tmc2130_init(TMCInitParams(false, FarmOrUserECool()));
     }
     break;