line numbers ale long, not int
This commit is contained in:
parent
3991d6c46a
commit
3d4980b4f2
1 changed files with 1 additions and 1 deletions
|
|
@ -392,7 +392,7 @@ inline void get_command()
|
||||||
if(strstr(cmdbuffer[bufindw], "N") != NULL)
|
if(strstr(cmdbuffer[bufindw], "N") != NULL)
|
||||||
{
|
{
|
||||||
strchr_pointer = strchr(cmdbuffer[bufindw], 'N');
|
strchr_pointer = strchr(cmdbuffer[bufindw], 'N');
|
||||||
gcode_N = atoi(strchr_pointer+1);
|
gcode_N = atol(strchr_pointer+1);
|
||||||
if(gcode_N != gcode_LastN+1 && (strstr(cmdbuffer[bufindw], "M110") == NULL) ) {
|
if(gcode_N != gcode_LastN+1 && (strstr(cmdbuffer[bufindw], "M110") == NULL) ) {
|
||||||
Serial.print("Serial Error: Line Number is not Last Line Number+1, Last Line:");
|
Serial.print("Serial Error: Line Number is not Last Line Number+1, Last Line:");
|
||||||
Serial.println(gcode_LastN);
|
Serial.println(gcode_LastN);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue