diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-08-30 15:28:17 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-08-30 15:28:17 +0300 |
commit | 5d0c6ce9ee169a9371d06ef1bbe73c678314a846 (patch) | |
tree | f42f2870cebab689c8a01891b1b33f816bfa94c5 /src/Platform/Platform.cpp | |
parent | 20f3d6cd93a4dbf22414a317f27f7463b69805cd (diff) |
Fixes for M917 on MB6XD
Diffstat (limited to 'src/Platform/Platform.cpp')
-rw-r--r-- | src/Platform/Platform.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp index e0331947..9c392fb1 100644 --- a/src/Platform/Platform.cpp +++ b/src/Platform/Platform.cpp @@ -659,7 +659,7 @@ void Platform::Init() noexcept driveDriverBits[drive] = 0; motorCurrents[drive] = 0.0; motorCurrentFraction[drive] = 1.0; -#if HAS_SMART_DRIVERS +#if HAS_SMART_DRIVERS || SUPPORT_CAN_EXPANSION standstillCurrentPercent[drive] = DefaultStandstillCurrentPercent; #endif microstepping[drive] = 16 | 0x8000; // x16 with interpolation @@ -2848,7 +2848,7 @@ int Platform::GetMotorCurrent(size_t drive, int code) const noexcept rslt = motorCurrentFraction[drive] * 100.0; break; -#if HAS_SMART_DRIVERS +#if HAS_SMART_DRIVERS || SUPPORT_CAN_EXPANSION case 917: rslt = standstillCurrentPercent[drive]; break; |