24 lines
643 B
C
24 lines
643 B
C
#ifndef __USER_VERSION_H__
|
|
#define __USER_VERSION_H__
|
|
|
|
#include "version.h" /* ESP firmware header */
|
|
#include "/tmp/buildinfo.h"
|
|
|
|
#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)
|
|
|
|
#define NODE_VERSION "NodeMCU " ESP_SDK_VERSION_STRING "." NODE_VERSION_XSTR(NODE_VERSION_INTERNAL) "\n" NODE_VERSION_LONG
|
|
|
|
#ifndef BUILD_DATE
|
|
#define BUILD_DATE "unspecified"
|
|
#endif
|
|
|
|
extern char SDK_VERSION[];
|
|
|
|
#endif /* __USER_VERSION_H__ */
|