Arduino Forum
Constrain() - warning: second operand of conditional expression has no effect
Projects
Programming
system
April 5, 2018, 10:46pm
3
Try:
a = constrain(a, 0, 100); // 0-254 causes warning
show post in topic
Related topics
Topic
Replies
Views
Activity
Set variable between specific values
Syntax & Programs
19
5308
May 6, 2021
constrain quastion
Programming
4
733
May 5, 2021
how to constrain value?
Programming
7
3129
May 5, 2021
Constrain Function Error
Programming
4
894
May 6, 2021
Constrain Utility. Making constrained variables.
Development
1
2490
May 6, 2021