genesys: Log the target motor speed in case it can't be acquired

(cherry picked from commit 52472026f7)
This commit is contained in:
Povilas Kanapickas
2021-12-28 02:49:57 +02:00
parent 591206cd92
commit ffd0d7e391
+2 -1
View File
@@ -136,7 +136,8 @@ MotorSlopeTable create_slope_table_for_speed(const MotorSlope& slope, unsigned t
unsigned max_speed_shifted_w = slope.max_speed_w >> step_shift;
if (target_speed_shifted_w < max_speed_shifted_w) {
dbg.log(DBG_warn, "failed to reach target speed");
dbg.vlog(DBG_warn, "failed to reach target speed %d %d", target_speed_w,
slope.max_speed_w);
}
if (target_speed_shifted_w >= std::numeric_limits<std::uint16_t>::max()) {