presumably fixed the feed rate computation

This commit is contained in:
Simen Svale Skogsrud
2009-02-04 14:01:24 +01:00
parent 7f9a9d27e2
commit d012440518
6 changed files with 47 additions and 32 deletions

View File

@@ -36,6 +36,12 @@ void prompt() {
line_counter = 0;
}
void sp_send_execution_marker()
{
printByte(EXECUTION_MARKER);
}
void print_result() {
double position[3];
int inches_mode;
@@ -77,20 +83,18 @@ void sp_process()
char c;
while((c = serialRead()) != -1)
{
//printByte(c); // Echo
if(c == '\r') {
if(c == '\r') { // Line is complete. Then execute!
line[line_counter] = 0;
//printByte(EXECUTION_MARKER);
gc_execute_line(line);
line_counter = 0;
print_result();
prompt();
} else if (c == ' ' || c == '\t') {
// Throw away whitepace
} else if (c >= 'a' && c <= 'z') {
} else if (c == ' ' || c == '\t') { // Throw away whitepace
} else if (c >= 'a' && c <= 'z') { // Upcase lowercase
line[line_counter++] = c-'a'+'A';
} else {
line[line_counter++] = c;
}
}
}