From 2b2a35844cb90e4f7d04cf18383117fb6abfd1b4 Mon Sep 17 00:00:00 2001 From: David Maixner Date: Thu, 6 Feb 2020 09:46:54 +0100 Subject: [PATCH] remove preprocessor directive --- src/AutoConnectLabels.h | 11 ----------- src/AutoConnectPage.h | 6 +----- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/AutoConnectLabels.h b/src/AutoConnectLabels.h index a98c543..cc81ec0 100644 --- a/src/AutoConnectLabels.h +++ b/src/AutoConnectLabels.h @@ -15,17 +15,6 @@ * default value. The lower row is an alternative label string as * a sample and can be changed you wish. * - * To define new language, just create new AutoConnectLabels_lang.h - * file with your translation and then you can use it, by adding - * directive to building process. - * - * E.g. for PlatformIO you can add to your environment in - * platformio.ini this build_flag: - * ``` - * build_flags = - * '-D_AUTOCONNECTLABELSLANG_="AutoConnectLabels_lang.h"' - * ``` - * * Notes: * You can find some tokens for the PageBuilder if you parse * AutoConnectPage.cpp. Some of the tokens are valid at the time diff --git a/src/AutoConnectPage.h b/src/AutoConnectPage.h index 9d24f30..71c44a6 100644 --- a/src/AutoConnectPage.h +++ b/src/AutoConnectPage.h @@ -10,11 +10,7 @@ #ifndef _AUTOCONNECTPAGE_H_ #define _AUTOCONNECTPAGE_H_ -#ifndef _AUTOCONNECTLABELSLANG_ - #include "AutoConnectLabels.h" -#else - #include _AUTOCONNECTLABELSLANG_ -#endif +#include "AutoConnectLabels.h" #define AUTOCONNECT_PARAMID_SSID "SSID" #define AUTOCONNECT_PARAMID_PASS "Passphrase"