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
 			printf(" = %d\n", c);
193
 			printf(" = %d\n", c);
194
 			data[64] = c;
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
 			printf("Data...");
203
 			printf("Data...");
197
 			for (d = 0; d < 64; d++) {
204
 			for (d = 0; d < 64; d++) {
198
 				while (keepRunning) {
205
 				while (keepRunning) {
209
 			printf(" Done!\n");
216
 			printf(" Done!\n");
210
 
217
 
211
 			addFrame(data);
218
 			addFrame(data);
219
+
220
+			// Acknowledge frame data
212
 			c = OK;
221
 			c = OK;
213
 			if(serialWriteTry(&c, 1)){
222
 			if(serialWriteTry(&c, 1)){
214
 				printf("Could not write to pseudo terminal\n");
223
 				printf("Could not write to pseudo terminal\n");

Loading…
Cancel
Save