Skip to content

Commit 9223261

Browse files
committed
Only define _BV in Marduino.h
1 parent d25231a commit 9223261

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Marlin/src/core/macros.h

-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@
6161
#define L(CODE) CODE ":\n\t"
6262

6363
// Macros for bit masks
64-
#undef _BV
65-
#define _BV(n) (1<<(n))
6664
#define TEST(n,b) !!((n)&_BV(b))
6765
#define SET_BIT_TO(N,B,TF) do{ if (TF) SBI(N,B); else CBI(N,B); }while(0)
6866

Marlin/src/core/utility.h

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#pragma once
2323

2424
#include "../inc/MarlinConfigPre.h"
25+
#include "../HAL/shared/Marduino.h"
2526

2627
constexpr char axis_codes[XYZE] = { 'X', 'Y', 'Z', 'E' };
2728

0 commit comments

Comments
 (0)