Skip to content

Commit c60b69d

Browse files
committed
Fix delay variable name in button_down_template and update down_wait calculation
1 parent 33accd9 commit c60b69d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.scripts/prepare_workflow.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def button_down_template(button_name):
2424
part-id: {button_name}
2525
control: pressed
2626
value: 1
27-
- delay: {hold_time}ms
27+
- delay: {press_holding_time}ms
2828
"""
2929

3030

@@ -62,10 +62,8 @@ def replace_lines(file_path, compiled_replacements):
6262
press_holding_time = int(sys.argv[3])
6363
wait_time_after_release = int(sys.argv[4])
6464

65-
hold_time = press_holding_time * 10
66-
6765
press_wait = press_holding_time + wait_time_after_release + serial_wait_time
68-
down_wait = hold_time + serial_wait_time
66+
down_wait = press_holding_time + serial_wait_time
6967
up_wait = wait_time_after_release + serial_wait_time
7068

7169
replacements = {

0 commit comments

Comments
 (0)