8000
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 adfc28d commit f2bac1cCopy full SHA for f2bac1c
tools/makecorever.py
@@ -35,9 +35,19 @@ def git(*args):
35
except:
36
pass
37
38
+ text = "#define ARDUINO_ESP8266_GIT_VER 0x{}\n".format(git_ver)
39
+ text += "#define ARDUINO_ESP8266_GIT_DESC {}\n".format(git_desc)
40
+
41
+ try:
42
+ with open(path, "r") as inp:
43
+ old_text = inp.read()
44
+ if old_text == text:
45
+ return
46
+ except:
47
+ pass
48
49
with open(path, "w") as out:
- out.write("#define ARDUINO_ESP8266_GIT_VER 0x{}\n".format(git_ver))
- out.write("#define ARDUINO_ESP8266_GIT_DESC {}\n".format(git_desc))
50
+ out.write(text)
51
52
53
if __name__ == "__main__":
0 commit comments