Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
changed #ifdef > 0 to #if > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
i-make-robots committed Mar 22, 2018
1 parent edf78c5 commit 01e78a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stewartPlatform2Firmware/hexapod.ino
Original file line number Diff line number Diff line change
Expand Up @@ -390,20 +390,20 @@ char hexapod_read_switches() {

for(i=0;i<6;++i) {
state=digitalRead(robot.arms[i].limit_switch_pin);
#ifdef DEBUG_SWITCHES > 0
#if DEBUG_SWITCHES > 0
Serial.print(state);
Serial.print('\t');
#endif
if(robot.arms[i].limit_switch_state != state) {
robot.arms[i].limit_switch_state = state;
#ifdef DEBUG_SWITCHES > 0
#if DEBUG_SWITCHES > 0
Serial.print(F("Switch "));
Serial.println(i,DEC);
#endif
}
if(state == LOW) ++hit;
}
#ifdef DEBUG_SWITCHES > 0
#if DEBUG_SWITCHES > 0
Serial.print('\n');
#endif
return hit;
Expand Down

0 comments on commit 01e78a9

Please sign in to comment.