Browse Source

Started implementing download

Max Nuding 12 years ago
parent
commit
bff4769b99
1 changed files with 17 additions and 2 deletions
  1. 17
    2
      HardwareEmulator/main.c

+ 17
- 2
HardwareEmulator/main.c View File

117
 }
117
 }
118
 
118
 
119
 int sendFrames() {
119
 int sendFrames() {
120
-	char c = ERROR;
120
+	/*char c = ERROR;
121
 	printf("Not implemented!\n");
121
 	printf("Not implemented!\n");
122
 	if (serialWriteTry(&c, 1)) {
122
 	if (serialWriteTry(&c, 1)) {
123
 		printf("Could not write to pseudo terminal\n");
123
 		printf("Could not write to pseudo terminal\n");
124
 	}
124
 	}
125
-	return -1;
125
+	return -1;*/
126
+	char c;
127
+	ssize_t size;
128
+	int a, frameCount, f, d;
129
+	char data[65];
130
+
131
+	c = OK;
132
+	if (serialWriteTry(&c, 1)) {
133
+		printf("Could not write to pseudo terminal\n");
134
+		return -1;
135
+	}
136
+
137
+	frameCount = framesStored();
138
+	printf("FrameCount = %d\n", frameCount);
139
+
140
+	
126
 }
141
 }
127
 
142
 
128
 int recieveFrames() {
143
 int recieveFrames() {

Loading…
Cancel
Save