DeviceName now as own define

This commit is contained in:
Marcel Peterkau 2021-06-13 23:17:11 +02:00
parent 349cfed864
commit 8d151458d4
4 changed files with 8 additions and 3 deletions

View File

@ -5,9 +5,9 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dark Emergency CTF Timer - by hiabuto.de</title>
<title>%TITLE% - by hiabuto.de</title>
<meta name="description" content="A project, designed by hiabuto.de">
<meta name="description" content="A Project, designed by hiabuto.de">
<meta name="author" content="Marcel Peterkau">
<link href="css/style.css" rel="stylesheet">

View File

@ -16,6 +16,7 @@ board_build.f_flash = 80000000L
board_build.ldscript = eagle.flash.4m1m.ld
build_flags=
-D DEVICE_NAME='"DE CTF Timer Prototype 1"'
-D WIFI_CLIENT
-D WIFI_SSID='"BND_Scanner_#42"'
-D WIFI_PASS='"5xMYkerbLMdrsSdF3hpy5DM9"'

View File

@ -18,6 +18,10 @@
#endif
#ifndef DEVICE_NAME
#define DEVICE_NAME WIFI_SSID
#endif
#ifndef BAT_LOW_PERCENT
#define BAT_LOW_PERCENT 10
#endif

View File

@ -114,7 +114,7 @@ String processor(const String &var)
return FACTION_3_NAME;
if (var == "TITLE")
return WIFI_SSID;
return DEVICE_NAME;
if (var == "BATTERY_LEVEL")
{