Skip to content

Commit

Permalink
Fixed bug with homing and polling at the same time. Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
chamnit committed Jan 6, 2013
1 parent e0f619b commit 4f459e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -11,12 +11,10 @@ Grbl includes full acceleration management with look ahead. That means the contr

##Downloads (Right-Click and Save-Link-As):
_**Master Branch:**_
* [Grbl v0.8c Atmega328p 16mhz 9600baud](http://bit.ly/SSdCJE) Last updated: 2012-12-16
* [Grbl v0.8c Atmega328p 16mhz 9600baud](http://bit.ly/SSdCJE) Last updated: 2013-01-06

_**Edge/Development Branch:**_
* [Grbl v0.9a Build 2012-12-21](http://bit.ly/VWe4VW) : For testing only. Automatic arc segment scaling by tolerance setting, leading to much faster feedrates. Axes acceleration and maximum velocity independence installed. 30kHz step rate max. Bugs still exist. Settings WILL be over-written.
* [Grbl v0.9a Build 2012-12-16](http://bit.ly/UUTOD4) : Axes acceleration and maximum velocity independence installed. Lowered 20kHz step rate max. Bugs still exist. For testing only. Settings WILL be over-written.
* [Grbl v0.9a Build 2012-12-10](http://bit.ly/UDBwpZ) : New experimental stepper algorithm. Smoother. 30kHz max. Bugs exist (Homing). For testing only. Settings WILL be over-written.
* [Grbl v0.9a Build 2012-12-21](http://bit.ly/VWe4VW) : For testing only. New experimental stepper algorithm. Smoother. Axes acceleration and maximum velocity limits. Automatic arc segment scaling by tolerance setting, leading to much faster feedrates about them. 30kHz step rate absolute max. CAUTION: Bugs still exist. Settings WILL be over-written. Please let us know of any lingering bugs (except with homing).

_**Archives:**_
* [Grbl v0.8a Atmega328p 16mhz 9600baud](http://bit.ly/TVCTVv)
Expand Down
3 changes: 1 addition & 2 deletions limits.c
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions motion_control.c
Expand Up @@ -218,6 +218,8 @@ void mc_go_home()
LIMIT_PCMSK &= ~LIMIT_MASK; // Disable hard limits pin change register for cycle duration

limits_go_home(); // Perform homing routine.

protocol_execute_runtime(); // Check for reset and set system abort.
if (sys.abort) { return; } // Did not complete. Alarm state set by mc_alarm.

// The machine should now be homed and machine zero has been located. Upon completion,
Expand Down
1 change: 1 addition & 0 deletions report.c
Expand Up @@ -90,6 +90,7 @@ void report_alarm_message(int8_t alarm_code)
printPgmString(PSTR("Abort during cycle")); break;
}
printPgmString(PSTR(". MPos?\r\n"));
delay_ms(500); // Force delay to ensure message clears serial write buffer.
}

// Prints feedback messages. This serves as a centralized method to provide additional
Expand Down

0 comments on commit 4f459e4

Please sign in to comment.