|
@@ -202,6 +202,9 @@ int recieveFrames() {
|
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;
|
205
|
208
|
}
|
206
|
209
|
}
|
207
|
210
|
data[d] = c;
|
|
@@ -209,6 +212,11 @@ int recieveFrames() {
|
209
|
212
|
printf(" Done!\n");
|
210
|
213
|
|
211
|
214
|
addFrame(data);
|
|
215
|
+ c = OK;
|
|
216
|
+ if(serialWriteTry(&c, 1)){
|
|
217
|
+ printf("Could not write to pseudo terminal\n");
|
|
218
|
+ return -1;
|
|
219
|
+ }
|
212
|
220
|
}
|
213
|
221
|
}
|
214
|
222
|
|