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
     // Refresh the gradient after a change
209
     // Refresh the gradient after a change
210
     static void refresh_gradient() {
210
     static void refresh_gradient() {
211
       #if ENABLED(GRADIENT_VTOOL)
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
       #else
213
       #else
214
         constexpr bool is_grd = true;
214
         constexpr bool is_grd = true;
215
       #endif
215
       #endif

Loading…
Cancel
Save