1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 20:18:52 +00:00

Suppress warnings, etc

・Suppress warnings
・Remove unused variable "did_update"
This commit is contained in:
esenapaj 2016-12-08 17:42:23 +09:00
parent 4ea87b8f34
commit e9393c3634
2 changed files with 2 additions and 3 deletions

View File

@ -1349,7 +1349,6 @@ void update_software_endstops(AxisEnum axis) {
float offs = LOGICAL_POSITION(0, axis);
#if ENABLED(DUAL_X_CARRIAGE)
bool did_update = false;
if (axis == X_AXIS) {
// In Dual X mode hotend_offset[X] is T1's home position

View File

@ -348,11 +348,11 @@ class Planner {
static void set_position_mm(const AxisEnum axis, const float &v);
static FORCE_INLINE void set_z_position_mm(const float &z) { set_position_mm(Z_AXIS, z); }
static FORCE_INLINE void set_e_position_mm(const float &e) {
set_position_mm((AxisEnum)E_AXIS
set_position_mm(AxisEnum(E_AXIS
#if ENABLED(DISTINCT_E_FACTORS)
+ active_extruder
#endif
, e);
), e);
}
/**