소스 검색

Started implementing download

Max Nuding 12 년 전
부모
커밋
bff4769b99
1개의 변경된 파일17개의 추가작업 그리고 2개의 파일을 삭제
  1. 17
    2
      HardwareEmulator/main.c

+ 17
- 2
HardwareEmulator/main.c 파일 보기

@@ -117,12 +117,27 @@ int main(int argc, char *argv[]) {
117 117
 }
118 118
 
119 119
 int sendFrames() {
120
-	char c = ERROR;
120
+	/*char c = ERROR;
121 121
 	printf("Not implemented!\n");
122 122
 	if (serialWriteTry(&c, 1)) {
123 123
 		printf("Could not write to pseudo terminal\n");
124 124
 	}
125
-	return -1;
125
+	return -1;*/
126
+	char c;
127
+	ssize_t size;
128
+	int a, frameCount, f, d;
129
+	char data[65];
130
+
131
+	c = OK;
132
+	if (serialWriteTry(&c, 1)) {
133
+		printf("Could not write to pseudo terminal\n");
134
+		return -1;
135
+	}
136
+
137
+	frameCount = framesStored();
138
+	printf("FrameCount = %d\n", frameCount);
139
+
140
+	
126 141
 }
127 142
 
128 143
 int recieveFrames() {

Loading…
취소
저장