Skip to content

Commit af5541d

Browse files
committed
more text and better c3 keyboard ux
1 parent 9e33c76 commit af5541d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

generate.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ def generate_branch(base, car):
9292
"""
9393
Make a new branch for the car with a hardcoded fingerprint
9494
"""
95-
branch_name = f"{base}-{car.replace(' ', '_').replace('&', 'AND').lower()}"
95+
96+
# - instead of _ because the keyboard is one tap for - vs two for _
97+
# & is AND because & may be too special
98+
# Lowercase because there's no caps lock in the keyboard
99+
# Remove () because they are special characters and may cause issues
100+
branch_name = f"{base}-{car.replace(' ', '-').replace('&', 'AND').replace('(', '').replace(')','').lower()}"
96101
logging.info("Generating branch %s", branch_name)
97102
# Delete branch if it already exists
98103
os.system(f"cd comma_openpilot && git branch -D {branch_name}")
@@ -124,7 +129,13 @@ def generate_html(base_cars_base_branches):
124129
<body>
125130
<h1>Hardcoded Fingerprint comma.ai openpilot Continuous Micro-Fork Generator branches</h1>
126131
<p>
127-
This is a list of all the branches with hardcoded fingerprints generated by the <a href="https://github.com/hardcoded-fp/openpilot/"> Hardcoded Fingerprint comma.ai openpilot Continuous Micro-Fork Generator</a>. Please see the <a href="https://github.com/hardcoded-fp/openpilot/">README for guidance and instructions</a>.
132+
⚠️ Only to be used as a last resort! ⚠️
133+
</p>
134+
<p>
135+
This is a list of all the branches with hardcoded fingerprints generated by the <a href="https://github.com/hardcoded-fp/openpilot/"> Hardcoded Fingerprint comma.ai openpilot Continuous Micro-Fork Generator</a>.
136+
</p>
137+
<p>
138+
Please see the <a href="https://github.com/hardcoded-fp/openpilot/">README for guidance and instructions</a>.
128139
</p>
129140
"""
130141
# Make it a nested list

0 commit comments

Comments
 (0)