Fixed bug with homing and polling at the same time. Updated readme.

This commit is contained in:
Sonny Jeon
2013-01-06 12:32:41 -07:00
parent e0f619b8c3
commit 4f459e473b
4 changed files with 6 additions and 6 deletions

View File

@@ -187,8 +187,7 @@ static void homing_cycle(uint8_t cycle_mask, int8_t pos_dir, bool invert_pin, fl
}
// Check if we are done or for system abort
protocol_execute_runtime();
if (!(cycle_mask) || sys.abort) { return; }
if (!(cycle_mask) || (sys.execute & EXEC_RESET)) { return; }
// Perform step.
STEPPING_PORT = (STEPPING_PORT & ~STEP_MASK) | (out_bits & STEP_MASK);