Parcourir la source

Forgot another ack in emu.

Thomas Buck il y a 12 ans
Parent
révision
1d1f090376
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 9
    0
      HardwareEmulator/main.c

+ 9
- 0
HardwareEmulator/main.c Voir le fichier

@@ -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");

Chargement…
Annuler
Enregistrer