diff harelet.c @ 16:43dcb67b173d

Automated Vimcurial commmit
author VilyaemKenyaz
date Tue, 12 Sep 2023 08:47:15 -0400
parents ef57eb9ec02b
children 7bf25e90a1de
line wrap: on
line diff
--- a/harelet.c	Tue Sep 12 08:41:30 2023 -0400
+++ b/harelet.c	Tue Sep 12 08:47:15 2023 -0400
@@ -57,12 +57,9 @@
 		gotoxy(points[i].X,points[i].Y);
 
 		if(points[i].down == 0){
-			//puts("X");
 			printf("X");
 		}
 		else{
-
-			//puts("*");
 			printf("*");
 		}
 
@@ -124,24 +121,25 @@
 			else{
 				strcat(instruction," Z 0\n");
 			}
-			strcat(instruction,buffer);
+			//strcat(instruction,buffer);
 			//Write to string
 			strcat(file,instruction);
 		}
+
 		//Finish
 		strcat(file,"G0 X0 Y0 Z0\n");
 		WriteFile(filename,file);
 	}
 	else{
 
-		puts("Invalid compile format");
+		puts("Invalid compiliation format");
+		scanf("");
 
 
 	}
 
 	puts("Finished Compiling GCODE");
-	getchar();
-	scanf("Check above for problems");
+	scanf("");
 
 }