Skip to content

Commit ad6a52c

Browse files
committed
fix prgm_next_step, get_prgm_time
1 parent c6e20eb commit ad6a52c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chamberconnectlibrary/watlowf4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def prgm_next_step(self):
592592
program = self.get_prgm_cur(exclusive=False)
593593
nextstep = self.get_prgm_cstep(exclusive=False) + 1
594594
self.const_start(exclusive=False)
595-
time.sleep(1)
595+
time.sleep(2)
596596
self.prgm_start(program, nextstep, exclusive=False)
597597

598598
@exclusive
@@ -618,7 +618,7 @@ def get_prgm_time(self, pgm=None):
618618
jumps += 1 if step['type'] == 'jump' else 0
619619
if jumps > 1:
620620
return 'ERROR:jump qty'
621-
if step['type'] == 'jump' and step.get('jprofile', rpgmi) != rpgmi:
621+
if step['type'] == 'jump' and step.get('jprofile', rpgmi) != 0:
622622
return 'ERROR:jump prfl'
623623
rtime = list(self.client.read_holding(4119, 3)) #[hours,minutes,seconds]
624624
jump_cnt = self.client.read_holding(4126)[0]

0 commit comments

Comments
 (0)