浏览代码

Forgot another ack in emu.

Thomas Buck 12 年前
父节点
当前提交
1d1f090376
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9
    0
      HardwareEmulator/main.c

+ 9
- 0
HardwareEmulator/main.c 查看文件

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

正在加载...
取消
保存