We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40b465b commit e88ff4dCopy full SHA for e88ff4d
cores/esp32/Arduino.h
@@ -68,7 +68,7 @@
68
#define __STRINGIFY(a) #a
69
#endif
70
71
-#define constrain(amt,low,high) ((amt)<=(low)?(low):((amt)=>(high)?(high):(amt)))
+#define constrain(amt,low,high) ((amt)<=(low)?(low):((amt)>=(high)?(high):(amt)))
72
#define radians(deg) ((deg)*DEG_TO_RAD)
73
#define degrees(rad) ((rad)*RAD_TO_DEG)
74
#define sq(x) ((x)*(x))
0 commit comments