Skip to content

Commit e641c9f

Browse files
committed
RELEASE using same values
1 parent 557ac6c commit e641c9f

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

cores/esp8266/Esp-version.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020

2121
#include <Arduino.h>
2222
#include <user_interface.h>
23-
#include <core_version.h>
2423
#include <lwipopts.h> // LWIP_HASH_STR (lwip2)
2524
#include <bearssl/bearssl_git.h> // BEARSSL_GIT short hash
2625

26+
#include <core_version.h>
27+
2728
#define STRHELPER(x) #x
2829
#define STR(x) STRHELPER(x) // stringifier
2930

cores/esp8266/Esp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ String EspClass::getCoreVersion()
254254
return String(core_release);
255255
}
256256
char buf[12];
257-
snprintf(buf, sizeof(buf), "%08x", core_version);
257+
snprintf(buf, sizeof(buf), PSTR("%08x"), core_version);
258258
return String(buf);
259259
}
260260

tools/makecorever.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,8 @@ def git(*args):
109109
#define ARDUINO_ESP8266_REVISION {revision}
110110
"""
111111
if release:
112-
if version != VERSION_UNSPECIFIED:
113-
release_version = version
114-
else:
115-
release_version = git_desc
116-
117112
text += rf"""
118-
#define ARDUINO_ESP8266_RELEASE \"{release_version}\"
113+
#define ARDUINO_ESP8266_RELEASE \"{major}.{minor}.{revision}\"
119114
#define ARDUINO_ESP8266_RELEASE_{major}_{minor}_{revision}
120115
"""
121116
else:

0 commit comments

Comments
 (0)