mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 05:48:43 +00:00
Fix vtool compiler warning (#13476)
This commit is contained in:
parent
02dc72acb6
commit
c5e96544b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user