Thomas Buck 12 gadus atpakaļ
vecāks
revīzija
573fdbbe77
1 mainītis faili ar 1 papildinājumiem un 4 dzēšanām
  1. 1
    4
      HardwareEmulator/main.c

+ 1
- 4
HardwareEmulator/main.c Parādīt failu

@@ -198,13 +198,10 @@ int recieveFrames() {
198 198
 				while (1) {
199 199
 					size = serialRead(&c, 1);
200 200
 					if (size == 1) {
201
-						break;
201
+						break; // We got our data byte
202 202
 					} else if (size == -1) {
203 203
 						printf("Could not read from psuedo terminal!\n");
204 204
 						return -1;
205
-					} else if (size == 0) {
206
-						//printf("No data for number %d\n", d);
207
-						break;
208 205
 					}
209 206
 				}
210 207
 				data[d] = c;

Notiek ielāde…
Atcelt
Saglabāt