Permalink
Browse files

Fixed issue with homing status returning positives when 0 < x < 3 axe…

…s homed.

Fixes #26.
  • Loading branch information...
1 parent 539d45c commit 0bb786ae9f810d38a940473a6feb21cdbbb4fe4a @qdot committed Sep 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/falcon/core/FalconFirmware.h
@@ -186,7 +186,7 @@ namespace libnifalcon
*
* @return True if all encoders are homed, false otherwise
*/
- bool isHomed() { return ( (m_homingStatus & (ENCODER_1_HOMED | ENCODER_2_HOMED | ENCODER_3_HOMED)) > 0); }
+ bool isHomed() { return ( (m_homingStatus & (ENCODER_1_HOMED | ENCODER_2_HOMED | ENCODER_3_HOMED)) == (ENCODER_1_HOMED | ENCODER_2_HOMED | ENCODER_3_HOMED)); }
/**
* Sets the communication object for the firmware to run I/O through

0 comments on commit 0bb786a

Please sign in to comment.