Skip to content

Commit

Permalink
Patch fade_factor compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Dec 13, 2016
1 parent 7c71bb2 commit 7b625e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Marlin/planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,6 @@ void Planner::check_axes_activity() {
}
else
z_fade_factor = 1.0;
#else
constexpr float z_fade_factor = 1.0;
#endif

#if ENABLED(MESH_BED_LEVELING)
Expand All @@ -584,7 +582,11 @@ void Planner::check_axes_activity() {
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)

float tmp[XYZ] = { lx, ly, 0 };
lz += bilinear_z_offset(tmp) * z_fade_factor;
lz += bilinear_z_offset(tmp)
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
* z_fade_factor
#endif
;

#endif
}
Expand Down

0 comments on commit 7b625e0

Please sign in to comment.