PulseGen: fix speed types in functions

Type was incorrectly changed in the last commit while debugging
pull/93/head
Yuri D'Elia 2021-08-30 12:31:03 +02:00 committed by DRracer
parent 04631677cc
commit bc36ea4566
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ void PulseGen::CalculateTrapezoid(block_t *block, steps_t entry_speed, steps_t e
block->final_rate = final_rate;
}
bool PulseGen::PlanMoveTo(pos_t target, rate_t feed_rate, rate_t end_rate) {
bool PulseGen::PlanMoveTo(pos_t target, steps_t feed_rate, steps_t end_rate) {
// Prepare to set up new block
if (block_index.full())
return false;

View File

@ -42,7 +42,7 @@ public:
/// @param feed_rate maximum feedrate
/// @param end_rate endding feedrate (may not be reached!)
/// @returns true if the move has been enqueued
bool PlanMoveTo(pos_t pos, rate_t feed_rate, rate_t end_rate = 0);
bool PlanMoveTo(pos_t pos, steps_t feed_rate, steps_t end_rate = 0);
/// Stop whatever moves are being done
/// @param halt When true, also abruptly stop axis movement.