summaryrefslogtreecommitdiff
path: root/Sprinter
diff options
context:
space:
mode:
authorVáclav 'ax' Hůla <axtheb@gmail.com>2011-09-17 20:14:20 +0200
committerVáclav 'ax' Hůla <axtheb@gmail.com>2011-09-17 20:14:20 +0200
commit3d4980b4f2ebf4ddf165b960dd6226758a30d696 (patch)
treedf6b46ca5056d9e0581df455b688ffb108636b06 /Sprinter
parent3991d6c46a8b25bae95c0d84072e2a26f2606699 (diff)
line numbers ale long, not int
Diffstat (limited to 'Sprinter')
-rw-r--r--Sprinter/Sprinter.pde2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index fdd3920..31ef14c 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -392,7 +392,7 @@ inline void get_command()
if(strstr(cmdbuffer[bufindw], "N") != NULL)
{
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) ) {
Serial.print("Serial Error: Line Number is not Last Line Number+1, Last Line:");
Serial.println(gcode_LastN);