Minor bug fixes and updates. Line number tracking.

- Line number tracking was getting truncated at 255, since it was using
wrong variable type. Fixed it with a trunc().

- Increased the max number line allowed by Grbl to 9999999 from the
g-code standard 99999. The latter seems to be an arbitrary number, so
we are allowing larger ones for at least one known use case scenario.

- Created a new test directory to contain some testing g-code to proof
the firmware. Only got started with one test case so far. More will be
inserted as needed.

- Some other commenting updates to clarify certain aspects of the code.
This commit is contained in:
Sonny Jeon
2014-07-02 08:39:19 -06:00
parent 79e0e45826
commit 1ef5a45479
4 changed files with 56 additions and 15 deletions

View File

@ -151,6 +151,7 @@ uint8_t get_direction_mask(uint8_t axis_idx)
return(axis_mask);
}
float hypot_f(float x, float y)
{
return(sqrt(x*x + y*y));