Explorar el Código

Started implementing download

Max Nuding hace 12 años
padre
commit
bff4769b99
Se han modificado 1 ficheros con 17 adiciones y 2 borrados
  1. 17
    2
      HardwareEmulator/main.c

+ 17
- 2
HardwareEmulator/main.c Ver fichero

@@ -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…
Cancelar
Guardar