|
@@ -1244,14 +1244,14 @@ inline bool code_value_bool() { return code_value_byte() > 0; }
|
1244
|
1244
|
}
|
1245
|
1245
|
|
1246
|
1246
|
inline float code_value_linear_units() { return code_value_float() * linear_unit_factor; }
|
1247
|
|
- inline float code_value_per_axis_unit(int axis) { return code_value_float() / axis_unit_factor(axis); }
|
1248
|
1247
|
inline float code_value_axis_units(int axis) { return code_value_float() * axis_unit_factor(axis); }
|
|
1248
|
+ inline float code_value_per_axis_unit(int axis) { return code_value_float() / axis_unit_factor(axis); }
|
1249
|
1249
|
|
1250
|
1250
|
#else
|
1251
|
1251
|
|
1252
|
1252
|
inline float code_value_linear_units() { return code_value_float(); }
|
1253
|
|
- inline float code_value_per_axis_unit(int axis) { return code_value_float(); }
|
1254
|
|
- inline float code_value_axis_units(int axis) { return code_value_float(); }
|
|
1253
|
+ inline float code_value_axis_units(int axis) { UNUSED(axis); return code_value_float(); }
|
|
1254
|
+ inline float code_value_per_axis_unit(int axis) { UNUSED(axis); return code_value_float(); }
|
1255
|
1255
|
|
1256
|
1256
|
#endif
|
1257
|
1257
|
|
|
@@ -4892,7 +4892,7 @@ inline void gcode_M110() {
|
4892
|
4892
|
* M111: Set the debug level
|
4893
|
4893
|
*/
|
4894
|
4894
|
inline void gcode_M111() {
|
4895
|
|
- marlin_debug_flags = code_seen('S') ? code_value_byte() : DEBUG_NONE;
|
|
4895
|
+ marlin_debug_flags = code_seen('S') ? code_value_byte() : (uint8_t) DEBUG_NONE;
|
4896
|
4896
|
|
4897
|
4897
|
const static char str_debug_1[] PROGMEM = MSG_DEBUG_ECHO;
|
4898
|
4898
|
const static char str_debug_2[] PROGMEM = MSG_DEBUG_INFO;
|
|
@@ -7369,7 +7369,7 @@ void process_next_command() {
|
7369
|
7369
|
gcode_M605();
|
7370
|
7370
|
break;
|
7371
|
7371
|
#endif // DUAL_X_CARRIAGE
|
7372
|
|
-
|
|
7372
|
+
|
7373
|
7373
|
#if ENABLED(LIN_ADVANCE)
|
7374
|
7374
|
case 905: // M905 Set advance factor.
|
7375
|
7375
|
gcode_M905();
|