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

PCP::PCPQueryOn (  ) 

Querys radio acutator status.

Actually querys the radio for a status on it's receiver state (on or off). This differs from PCPIsOn in that it makes a call to the radio, rather than checking a local variable

true if the radio's receiver is on, false otherwise.
See also:

Definition at line 802 of file pcp.cpp.

References PComm::PCAsk(), PComm::PCHear(), PCPComm, and PCPTemp.

#ifdef DEBUG_VER_
      fprintf(stderr, "PCP: PCPQUERYON Called\n");
#endif // DEBUG_VER_
      if(PCPComm->PCAsk("H1")) {
            if(PCPComm->PCHear(PCPTemp)) {
                  if(strcmp(PCPTemp, "H101") == 0)
                        return true;
                        return false;

      return false;

Generated by  Doxygen 1.6.0   Back to index