Logo Search packages:      
Sourcecode: icomlib version File versions  Download package

PComm::countCall (  )  [private]

function to keep track on the number of calls

this function keeps track of the number of calls that were sent to the radio before the last reset. it calls resetCall() every 200 calls, otherwise it increments the call count.

See also:
resetCall

Definition at line 564 of file pcomm.cpp.

References callCount, and resetCall().

Referenced by Read().

{
      if (callCount<200) {
            callCount++;
      } else {
            resetCall();
      }

#ifdef DEBUG_VER_2
      fprintf(stderr, "PCOMM: countCall() %d\n", callCount);
#endif // DEBUG_VER_
}     


Generated by  Doxygen 1.6.0   Back to index