diff --git a/Marlin/src/core/macros.h b/Marlin/src/core/macros.h index ce72247c5d..68943afed5 100644 --- a/Marlin/src/core/macros.h +++ b/Marlin/src/core/macros.h @@ -61,8 +61,6 @@ #define L(CODE) CODE ":\n\t" // Macros for bit masks -#undef _BV -#define _BV(n) (1<<(n)) #define TEST(n,b) !!((n)&_BV(b)) #define SET_BIT_TO(N,B,TF) do{ if (TF) SBI(N,B); else CBI(N,B); }while(0) diff --git a/Marlin/src/core/utility.h b/Marlin/src/core/utility.h index 63597fd413..c8614925eb 100644 --- a/Marlin/src/core/utility.h +++ b/Marlin/src/core/utility.h @@ -22,6 +22,7 @@ #pragma once #include "../inc/MarlinConfigPre.h" +#include "../HAL/shared/Marduino.h" constexpr char axis_codes[XYZE] = { 'X', 'Y', 'Z', 'E' };