We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77da4af commit 557ac6cCopy full SHA for 557ac6c
tools/makecorever.py
@@ -31,10 +31,6 @@
31
VERSION_DEFAULT = ("0", "0", "0")
32
33
34
-def escape_version(v: str) -> str:
35
- return v.replace("-", "_").replace(".", "_")
36
-
37
38
def check_git(*args: str, cwd: Optional[str]):
39
cmd = ["git"]
40
if cwd:
@@ -120,7 +116,7 @@ def git(*args):
120
116
121
117
text += rf"""
122
118
#define ARDUINO_ESP8266_RELEASE \"{release_version}\"
123
-#define ARDUINO_ESP8266_RELEASE_{escape_version(release_version)}
119
+#define ARDUINO_ESP8266_RELEASE_{major}_{minor}_{revision}
124
"""
125
else:
126
text += """
0 commit comments