Ver código fonte

Forgot another ack in emu.

Thomas Buck 12 anos atrás
pai
commit
1d1f090376
1 arquivos alterados com 9 adições e 0 exclusões
  1. 9
    0
      HardwareEmulator/main.c

+ 9
- 0
HardwareEmulator/main.c Ver arquivo

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

Carregando…
Cancelar
Salvar