Browse Source

Forgot another ack in emu.

Thomas Buck 12 years ago
parent
commit
1d1f090376
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      HardwareEmulator/main.c

+ 9
- 0
HardwareEmulator/main.c View File

@@ -193,6 +193,13 @@ int recieveFrames() {
193 193
 			printf(" = %d\n", c);
194 194
 			data[64] = c;
195 195
 
196
+			// Acknowledge frame duration
197
+			c = OK;
198
+			if(serialWriteTry(&c, 1)){
199
+				printf("Could not write to pseudo terminal\n");
200
+				return -1;
201
+			}
202
+
196 203
 			printf("Data...");
197 204
 			for (d = 0; d < 64; d++) {
198 205
 				while (keepRunning) {
@@ -209,6 +216,8 @@ int recieveFrames() {
209 216
 			printf(" Done!\n");
210 217
 
211 218
 			addFrame(data);
219
+
220
+			// Acknowledge frame data
212 221
 			c = OK;
213 222
 			if(serialWriteTry(&c, 1)){
214 223
 				printf("Could not write to pseudo terminal\n");

Loading…
Cancel
Save