Ignore:
Timestamp:
09/21/11 12:19:34 (13 years ago)
Author:
neise
Message:
added a comment about the sleep(2) in HVBoard::Comminicate , that is a TODO
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/hvMCUtest/HV.cc

    r12145 r12146  
    8484        printf("\n");
    8585  }
     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
    8696        sleep (2);
     97
    8798  // === Try to read until time-out ===
    8899  FD_ZERO(&SelectDescriptor);   FD_SET(fDescriptor, &SelectDescriptor);
Note: See TracChangeset for help on using the changeset viewer.