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

Fix build error when `TMC2130_SERVICE_CODES_M910_M918` is enabled
This commit is contained in:
DRracer 2021-11-19 07:21:38 +01:00 committed by GitHub
commit 3228f9d03c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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