Skip to content

Commit e88ff4d

Browse files
authored
BugFix
1 parent 40b465b commit e88ff4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/Arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
#define __STRINGIFY(a) #a
6969
#endif
7070

71-
#define constrain(amt,low,high) ((amt)<=(low)?(low):((amt)=>(high)?(high):(amt)))
71+
#define constrain(amt,low,high) ((amt)<=(low)?(low):((amt)>=(high)?(high):(amt)))
7272
#define radians(deg) ((deg)*DEG_TO_RAD)
7373
#define degrees(rad) ((rad)*RAD_TO_DEG)
7474
#define sq(x) ((x)*(x))

0 commit comments

Comments
 (0)