mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-22 02:32:10 +10:00
Refactor strings BREAKING (#1474)
* refactor strings, split out consts breaking! * move consts out of strings file BREAKING You will have to remove the constants from your strings files and add the new include instead, a simple diff should obviously show the changes * adds WM_STRINGS_FILE for env overrides * Revert "move consts out of strings file BREAKING" This reverts commit bb9f092413153825d8e7acde1dcc1489e840df1e. * Create wm_strings_en.h * final clean up of strings_en.h, legacy * comments
This commit is contained in:
+8
-2
@@ -131,13 +131,19 @@
|
||||
|
||||
#include <DNSServer.h>
|
||||
#include <memory>
|
||||
#include "strings_en.h"
|
||||
|
||||
|
||||
// Include wm strings vars
|
||||
// Pass in strings env override via WM_STRINGS_FILE
|
||||
#ifndef WM_STRINGS_FILE
|
||||
#define WM_STRINGS_FILE "wm_strings_en.h" // this includes constants as dependency
|
||||
#endif
|
||||
#include WM_STRINGS_FILE
|
||||
|
||||
// prep string concat vars
|
||||
#define WM_STRING2(x) #x
|
||||
#define WM_STRING(x) WM_STRING2(x)
|
||||
|
||||
|
||||
// #include <esp_idf_version.h>
|
||||
#ifdef ESP_IDF_VERSION
|
||||
// #pragma message "ESP_IDF_VERSION_MAJOR = " WM_STRING(ESP_IDF_VERSION_MAJOR)
|
||||
|
||||
Reference in New Issue
Block a user