Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defined constant compared to literal constant in conditional statements #3

Open
Khalinda opened this issue May 2, 2023 · 0 comments

Comments

@Khalinda
Copy link

Khalinda commented May 2, 2023

Hi,
In X_Limb_Hand_Control.ino, the defined constant, "POTA" is used in 4 conditional statements, starting at line 260. Was "PotA" intended instead of "POTA"? See grep output below:

~\X_Limb_Hand_Control>grep -n POTA *.ino
X_Limb_Hand_Control.ino:20:#define POTA A3 // Potentiometer A
X_Limb_Hand_Control.ino:128: pinMode(POTA, INPUT);
X_Limb_Hand_Control.ino:260: if (POTA<200){
X_Limb_Hand_Control.ino:342: if (POTA<200){
X_Limb_Hand_Control.ino:364: if (POTA<200){
X_Limb_Hand_Control.ino:372: if (POTA<200){

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant