Skip to content
Snippets Groups Projects
Commit 1ba20864 authored by rec1g18's avatar rec1g18
Browse files

Update BoxingDirection.cpp

Removed redundant IF statement
parent e9ef01f8
No related branches found
No related tags found
No related merge requests found
...@@ -127,6 +127,7 @@ void _robADXL375_reading() ...@@ -127,6 +127,7 @@ void _robADXL375_reading()
} }
if ((rRaw<=50)&&above){ if ((rRaw<=50)&&above){
if (above){
_robADXL375_decode(); // Decodes the value. Sends the byte. _robADXL375_decode(); // Decodes the value. Sends the byte.
xRawMax=xRaw; xRawMax=xRaw;
xRawMin=xRaw; xRawMin=xRaw;
...@@ -134,12 +135,9 @@ void _robADXL375_reading() ...@@ -134,12 +135,9 @@ void _robADXL375_reading()
yRawMin=yRaw; yRawMin=yRaw;
zRawMax=zRaw; zRawMax=zRaw;
zRawMin=zRaw; zRawMin=zRaw;
below=true;
above=false; above=false;
} }
if ((rRaw<=50)){
below=true; below=true;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment