Browse Source

Fix vtool compiler warning (#13476)

Thomas Moore 6 years ago
parent
commit
c5e96544b5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/feature/mixing.h

+ 1
- 1
Marlin/src/feature/mixing.h View File

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

Loading…
Cancel
Save