Skip to content

Commit

Permalink
SEQNG-552 Fixed bug in setting EPICS IO timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
jluhrs committed Mar 15, 2018
1 parent b591586 commit 407f09f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,10 @@ object SeqexecEngine {
// the configuration file or from the environment
val caInit = caAddrList.map(a => Task.delay(CaService.setAddressList(a))).getOrElse {
Task.delay(Option(System.getenv("EPICS_CA_ADDR_LIST"))).flatMap {
case Some(_) => Task.delay(CaService.setIOTimeout(java.time.Duration.ofMillis(ioTimeout.toMillis)))
case Some(_) => taskUnit
case _ => Task.fail(new RuntimeException("Cannot initialize EPICS subsystem"))
}
}
} *> Task.delay(CaService.setIOTimeout(java.time.Duration.ofMillis(ioTimeout.toMillis)))
val tcsInit = (tcsKeywords || !tcsSim).fold(initEpicsSystem(TcsEpics, tops), taskUnit)
// More instruments to be added to the list here
val instList = site match {
Expand Down

0 comments on commit 407f09f

Please sign in to comment.