Skip to content

Commit

Permalink
Merge pull request #495 from jluhrs/feature/SEQNG-552
Browse files Browse the repository at this point in the history
SEQNG-552 Fixed bug in setting EPICS IO timeout.
  • Loading branch information
jluhrs authored Mar 15, 2018
2 parents b591586 + 407f09f commit f27d53f
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 f27d53f

Please sign in to comment.