FACT++  1.0
void ConnectionBias::HandleUpdateTimer ( const bs::error_code &  error)
inlineprivate

Definition at line 643 of file biasctrl.cc.

References Error(), and str.

Referenced by ScheduleUpdate().

644  {
645  if (error==ba::error::basic_errors::operation_aborted)
646  {
647  Warn("Update timer aborted...");
648  fIsRamping = false;
649  return;
650  }
651 
652  if (error)
653  {
654  ostringstream str;
655  str << "Update timer: " << error.message() << " (" << error << ")";// << endl;
656  Error(str);
657 
658  CloseImp(-1);
659  return;
660  }
661 
662  if (!is_open())
663  return;
664 
665  if (fUpdateTime==0 && fIsInitializing!=2)
666  return;
667 
668  if (fIsRamping)
670  else
671  ReadAllChannels(true);
672 
673  fIsInitializing = 0;
674  }
void CloseImp(int64_t delay=0)
char str[80]
Definition: test_client.c:7
int Error(const std::string &str)
Definition: MessageImp.h:49
int Warn(const std::string &str)
Definition: MessageImp.h:48
bool fIsRamping
Definition: biasctrl.cc:60
int fIsInitializing
Definition: biasctrl.cc:59
void ScheduleUpdate(int millisec)
Definition: biasctrl.cc:676
uint32_t fUpdateTime
Definition: biasctrl.cc:55
void ReadAllChannels(bool special=false)
Definition: biasctrl.cc:1124

+ Here is the call graph for this function:

+ Here is the caller graph for this function: