2015-03-06 04:59:04 +01:00
|
|
|
#ifndef __USER_VERSION_H__
|
|
|
|
#define __USER_VERSION_H__
|
|
|
|
|
2018-03-14 00:34:42 +01:00
|
|
|
#include "version.h" /* ESP firmware header */
|
2019-06-27 16:44:25 +02:00
|
|
|
#include "/tmp/buildinfo.h"
|
2018-03-14 00:34:42 +01:00
|
|
|
|
|
|
|
#define NODE_VERSION_MAJOR ESP_SDK_VERSION_MAJOR
|
|
|
|
#define NODE_VERSION_MINOR ESP_SDK_VERSION_MINOR
|
|
|
|
#define NODE_VERSION_REVISION ESP_SDK_VERSION_PATCH
|
|
|
|
#define NODE_VERSION_INTERNAL 0
|
|
|
|
|
|
|
|
#define NODE_VERSION_STR(x) #x
|
|
|
|
#define NODE_VERSION_XSTR(x) NODE_VERSION_STR(x)
|
|
|
|
|
2019-06-27 16:44:25 +02:00
|
|
|
#define NODE_VERSION "NodeMCU " ESP_SDK_VERSION_STRING "." NODE_VERSION_XSTR(NODE_VERSION_INTERNAL) "\n" NODE_VERSION_LONG
|
2015-03-06 04:59:04 +01:00
|
|
|
|
2015-10-07 04:33:09 +02:00
|
|
|
#ifndef BUILD_DATE
|
2018-03-14 00:34:42 +01:00
|
|
|
#define BUILD_DATE "unspecified"
|
2015-10-07 04:33:09 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
extern char SDK_VERSION[];
|
2015-03-06 04:59:04 +01:00
|
|
|
|
|
|
|
#endif /* __USER_VERSION_H__ */
|