mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
move version and firmwaretype to appinfo
This commit is contained in:
18
lib/appinfo/GwAppInfo.h
Normal file
18
lib/appinfo/GwAppInfo.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
#define GWSTR(x) #x
|
||||
#define GWSTRINGIFY(x) GWSTR(x)
|
||||
#ifdef GWRELEASEVERSION
|
||||
#define VERSION GWSTRINGIFY(GWRELEASEVERSION)
|
||||
#define LOGLEVEL GwLog::ERROR
|
||||
#else
|
||||
#ifdef GWDEVVERSION
|
||||
#define VERSION GWSTRINGIFY(GWDEVVERSION)
|
||||
#define LOGLEVEL GwLog::DEBUG
|
||||
#endif
|
||||
#ifndef VERSION
|
||||
#define VERSION "0.9.9"
|
||||
#define LOGLEVEL GwLog::DEBUG
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define FIRMWARE_TYPE GWSTRINGIFY(PIO_ENV_BUILD)
|
||||
Reference in New Issue
Block a user