Changeset 12146 for fact/tools/hvMCUtest/HV.cc
- Timestamp:
- 09/21/11 12:19:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/hvMCUtest/HV.cc
r12145 r12146 84 84 printf("\n"); 85 85 } 86 87 // TODO 88 // this is bad coding here. but if I do not wait here, 89 // the text output of the arduino is not completely send, and only 90 // part of the message is received .. 91 // I would be better to loop over select and red until select does 92 // return after the timeout, the it is clear, that the arduino send all 93 // it wanted to send, and the whole 'Communicate' is rally finished. 94 // but sleeping 2secs is okay for the moment . 95 // TODO 86 96 sleep (2); 97 87 98 // === Try to read until time-out === 88 99 FD_ZERO(&SelectDescriptor); FD_SET(fDescriptor, &SelectDescriptor);
Note:
See TracChangeset
for help on using the changeset viewer.