🚨 Fix some compiler warnings
This commit is contained in:
committed by
Scott Lahteine
parent
f7bea2846f
commit
494a2fc80c
@ -3292,7 +3292,7 @@ void Planner::refresh_positioning() {
|
||||
}
|
||||
|
||||
// Apply limits to a variable and give a warning if the value was out of range
|
||||
inline void limit_and_warn(float &val, const uint8_t axis, PGM_P const setting_name, const xyze_float_t &max_limit) {
|
||||
inline void limit_and_warn(float &val, const AxisEnum axis, PGM_P const setting_name, const xyze_float_t &max_limit) {
|
||||
const uint8_t lim_axis = TERN_(HAS_EXTRUDERS, axis > E_AXIS ? E_AXIS :) axis;
|
||||
const float before = val;
|
||||
LIMIT(val, 0.1, max_limit[lim_axis]);
|
||||
@ -3311,7 +3311,7 @@ inline void limit_and_warn(float &val, const uint8_t axis, PGM_P const setting_n
|
||||
*
|
||||
* This hard limit is applied as a block is being added to the planner queue.
|
||||
*/
|
||||
void Planner::set_max_acceleration(const uint8_t axis, float inMaxAccelMMS2) {
|
||||
void Planner::set_max_acceleration(const AxisEnum axis, float inMaxAccelMMS2) {
|
||||
#if ENABLED(LIMITED_MAX_ACCEL_EDITING)
|
||||
#ifdef MAX_ACCEL_EDIT_VALUES
|
||||
constexpr xyze_float_t max_accel_edit = MAX_ACCEL_EDIT_VALUES;
|
||||
@ -3334,7 +3334,7 @@ void Planner::set_max_acceleration(const uint8_t axis, float inMaxAccelMMS2) {
|
||||
*
|
||||
* This hard limit is applied as a block is being added to the planner queue.
|
||||
*/
|
||||
void Planner::set_max_feedrate(const uint8_t axis, float inMaxFeedrateMMS) {
|
||||
void Planner::set_max_feedrate(const AxisEnum axis, float inMaxFeedrateMMS) {
|
||||
#if ENABLED(LIMITED_MAX_FR_EDITING)
|
||||
#ifdef MAX_FEEDRATE_EDIT_VALUES
|
||||
constexpr xyze_float_t max_fr_edit = MAX_FEEDRATE_EDIT_VALUES;
|
||||
|
Reference in New Issue
Block a user