Skip to content

Commit 557ac6c

Browse files
committed
unused escape
1 parent 77da4af commit 557ac6c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tools/makecorever.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
VERSION_DEFAULT = ("0", "0", "0")
3232

3333

34-
def escape_version(v: str) -> str:
35-
return v.replace("-", "_").replace(".", "_")
36-
37-
3834
def check_git(*args: str, cwd: Optional[str]):
3935
cmd = ["git"]
4036
if cwd:
@@ -120,7 +116,7 @@ def git(*args):
120116

121117
text += rf"""
122118
#define ARDUINO_ESP8266_RELEASE \"{release_version}\"
123-
#define ARDUINO_ESP8266_RELEASE_{escape_version(release_version)}
119+
#define ARDUINO_ESP8266_RELEASE_{major}_{minor}_{revision}
124120
"""
125121
else:
126122
text += """

0 commit comments

Comments
 (0)