Browse Source

Unused CS_ACTUAL_sb (#13282)

pull/1/head
Ludy 6 years ago
committed by Scott Lahteine
parent
commit
bd4160dbaf
  1. 3
      Marlin/src/feature/tmc_util.cpp

3
Marlin/src/feature/tmc_util.cpp

@ -112,7 +112,7 @@
data.is_standstill = !!(spart & _BV(STST_bp - 24)); data.is_standstill = !!(spart & _BV(STST_bp - 24));
data.sg_result_reasonable = !data.is_standstill; // sg_result has no reasonable meaning while standstill data.sg_result_reasonable = !data.is_standstill; // sg_result has no reasonable meaning while standstill
#endif #endif
UNUSED(CS_ACTUAL_sb);
#else // !__AVR__ #else // !__AVR__
data.is_ot = !!(data.drv_status & _BV(OT_bp)); data.is_ot = !!(data.drv_status & _BV(OT_bp));
@ -159,6 +159,7 @@
spart = data.drv_status >> 24; spart = data.drv_status >> 24;
data.is_stealth = !!(spart & _BV(STEALTH_bp - 24)); data.is_stealth = !!(spart & _BV(STEALTH_bp - 24));
data.is_standstill = !!(spart & _BV(STST_bp - 24)); data.is_standstill = !!(spart & _BV(STST_bp - 24));
UNUSED(CS_ACTUAL_sb);
#else #else
data.cs_actual = (data.drv_status & CS_ACTUAL_bm) >> CS_ACTUAL_sb; data.cs_actual = (data.drv_status & CS_ACTUAL_bm) >> CS_ACTUAL_sb;
data.is_stealth = !!(data.drv_status & _BV(STEALTH_bp)); data.is_stealth = !!(data.drv_status & _BV(STEALTH_bp));

Loading…
Cancel
Save