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

Definition at line 280 of file temperature.cc.

References fStatus, Time::IsValid(), Temperature::State::kDisconnected, and kMaxAddr.

281  {
282  // Timeout
283  if (!fLastReport.IsValid() || Time()>fLastReport+boost::posix_time::seconds(fInterval*3))
285 
286  return fStatus;
287  }
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
bool IsValid() const
Definition: Time.h:90

+ Here is the call graph for this function: