changeset 16:43dcb67b173d

Automated Vimcurial commmit
author VilyaemKenyaz
date Tue, 12 Sep 2023 08:47:15 -0400
parents ef57eb9ec02b
children e13e2d661cc8
files .harelet.c.swp FIRST harelet harelet.c
diffstat 4 files changed, 9 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
Binary file .harelet.c.swp has changed
--- a/FIRST	Tue Sep 12 08:41:30 2023 -0400
+++ b/FIRST	Tue Sep 12 08:47:15 2023 -0400
@@ -1,9 +1,6 @@
 G20
 G0 X0 Y0 Z0
-G0 X 70 Y 25 Z 5
-25G0 X 70 Y 25 Z 5
-25G0 X 100 Y 15 Z 5
-15G0 X 70 Y 25 Z 5
-25G0 X 100 Y 15 Z 5
-15G0 X 100 Y 30 Z 5
-30G0 X0 Y0 Z0
+G0 X 100 Y 40 Z 5
+G0 X 100 Y 40 Z 5
+G0 X 135 Y 25 Z 5
+G0 X0 Y0 Z0
Binary file harelet has changed
--- 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("");
 
 }