FACT++  1.0
int ConnectionGPS::GetState ( ) const
inline

Definition at line 312 of file gpsctrl.cc.

References fState, GPS::State::kConnected, GPS::State::kDisconnected, kMaxAddr, and StateMachineImp::kSM_Error.

313  {
314  if (!IsConnected())
316 
317  if (fState!=GPS::State::kConnected && fLastReport+boost::posix_time::seconds(105) < Time())
319 
320  return fState;
321  }
Time fLastReport
Definition: gpsctrl.cc:31
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
Error states should be between 0x100 and 0xffff.