avoid float -> int64 conversion #1977

cherry picking...
This commit is contained in:
rusefillc 2020-11-24 20:33:51 -05:00
parent bca35aa2f9
commit a5d0e4beeb
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ bool StepDirectionStepper::pulse() {
} }
void StepperHw::pause() const { void StepperHw::pause() const {
chThdSleepMilliseconds(m_reactionTime); chThdSleepMicroseconds((int)(MS2US(m_reactionTime)));
} }
void StepperHw::setReactionTime(float ms) { void StepperHw::setReactionTime(float ms) {