Skip to content

Commit be41af2

Browse files
committed
pncconf: fix debounce HAL generation
1 parent 11ab0d5 commit be41af2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/emc/usr_intf/pncconf/build_HAL.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,12 +502,12 @@ def writebackup(origname):
502502
print(file=file)
503503
print(_("# ---probe signal---"), file=file)
504504
print(file=file)
505-
if self.d.debounce_probe:
505+
if probe and self.d.debounce_probe:
506506
print("setp dbounce.probe.delay %s" % self.d.debounce_cycle_probe, file=file)
507507
print("net probe-in => dbounce.probe.in", file=file)
508508
print("net probe-db <= dbounce.probe.out", file=file)
509509
print("net probe-db => motion.probe-input", file=file)
510-
else:
510+
elif probe:
511511
print("net probe-in => motion.probe-input", file=file)
512512
print(file=file)
513513
if self.d.externaljog:
@@ -797,7 +797,7 @@ def writebackup(origname):
797797
print(file=file)
798798
print(_("# **** Setup for external estop ladder program -END ****"), file=file)
799799
elif estop:
800-
if self.d.debounce_probe:
800+
if self.d.debounce_estop:
801801
print("setp dbounce.estop.delay %s" % self.d.debounce_cycle_estop, file=file)
802802
print("net estop-ext => dbounce.estop.in", file=file)
803803
print("net estop-db <= dbounce.estop.out", file=file)

0 commit comments

Comments
 (0)