Browse Source

Fix vtool compiler warning (#13476)

pull/1/head
Thomas Moore 6 years ago
committed by Scott Lahteine
parent
commit
c5e96544b5
  1. 2
      Marlin/src/feature/mixing.h

2
Marlin/src/feature/mixing.h

@ -209,7 +209,7 @@ class Mixer {
// Refresh the gradient after a change // Refresh the gradient after a change
static void refresh_gradient() { static void refresh_gradient() {
#if ENABLED(GRADIENT_VTOOL) #if ENABLED(GRADIENT_VTOOL)
const bool is_grd = (selected_vtool == gradient.vtool_index || gradient.vtool_index == -1); const bool is_grd = (gradient.vtool_index == -1 || selected_vtool == (uint8_t)gradient.vtool_index);
#else #else
constexpr bool is_grd = true; constexpr bool is_grd = true;
#endif #endif

Loading…
Cancel
Save