Thomas Buck 12年前
コミット
573fdbbe77
1個のファイルの変更1行の追加4行の削除
  1. 1
    4
      HardwareEmulator/main.c

+ 1
- 4
HardwareEmulator/main.c ファイルの表示

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

読み込み中…
キャンセル
保存