Revert ea5b8942db2616e93fc0478922010c3bab7c0481^..HEAD

This commit is contained in:
Sonny J
2011-08-15 19:37:22 -06:00
parent 896a6b9199
commit ed5e5d1181
3 changed files with 55 additions and 75 deletions

View File

@ -117,8 +117,7 @@ static double theta(double x, double y)
#endif
// Executes one line of 0-terminated G-Code. The line is assumed to contain only uppercase
// characters and signed floating point values (no whitespace). Comments and block delete
// characters have been removed.
// characters and signed floating point values (no whitespace).
uint8_t gc_execute_line(char *line) {
uint8_t char_counter = 0;
char letter;
@ -140,6 +139,10 @@ uint8_t gc_execute_line(char *line) {
gc.status_code = STATUS_OK;
// Disregard comments and block delete
if (line[0] == '(') { return(gc.status_code); }
if (line[0] == '/') { char_counter++; } // ignore block delete
// Pass 1: Commands
while(next_statement(&letter, &value, line, &char_counter)) {
int_value = trunc(value);