diff options
author | Václav 'ax' Hůla <axtheb@gmail.com> | 2011-09-17 20:14:20 +0200 |
---|---|---|
committer | Václav 'ax' Hůla <axtheb@gmail.com> | 2011-09-17 20:14:20 +0200 |
commit | 3d4980b4f2ebf4ddf165b960dd6226758a30d696 (patch) | |
tree | df6b46ca5056d9e0581df455b688ffb108636b06 | |
parent | 3991d6c46a8b25bae95c0d84072e2a26f2606699 (diff) |
line numbers ale long, not int
-rw-r--r-- | Sprinter/Sprinter.pde | 2 |
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); |