Skip to content

Commit

Permalink
Ender 3 V2 DWIN cleanup (MarlinFirmware#21026)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and vyacheslav-shubin committed Mar 10, 2021
1 parent 8c43141 commit 7f04126
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 124 deletions.
8 changes: 4 additions & 4 deletions Marlin/src/core/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,20 +130,20 @@

#define NOLESS(v, n) \
do{ \
__typeof__(n) _n = (n); \
__typeof__(v) _n = (n); \
if (_n > v) v = _n; \
}while(0)

#define NOMORE(v, n) \
do{ \
__typeof__(n) _n = (n); \
__typeof__(v) _n = (n); \
if (_n < v) v = _n; \
}while(0)

#define LIMIT(v, n1, n2) \
do{ \
__typeof__(n1) _n1 = (n1); \
__typeof__(n2) _n2 = (n2); \
__typeof__(v) _n1 = (n1); \
__typeof__(v) _n2 = (n2); \
if (_n1 > v) v = _n1; \
else if (_n2 < v) v = _n2; \
}while(0)
Expand Down
Loading

0 comments on commit 7f04126

Please sign in to comment.