From c5e96544b59da318fb212dfbe5d50fcea9051294 Mon Sep 17 00:00:00 2001 From: Thomas Moore Date: Sun, 24 Mar 2019 21:02:28 -0400 Subject: [PATCH] Fix vtool compiler warning (#13476) --- Marlin/src/feature/mixing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/feature/mixing.h b/Marlin/src/feature/mixing.h index 9003566eb9..bb069c97d7 100644 --- a/Marlin/src/feature/mixing.h +++ b/Marlin/src/feature/mixing.h @@ -209,7 +209,7 @@ class Mixer { // Refresh the gradient after a change static void refresh_gradient() { #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 constexpr bool is_grd = true; #endif