yoversion
This commit is contained in:
@@ -543,7 +543,7 @@ void Config::sleepForAfter(uint16_t sf, uint16_t sa){
|
|||||||
|
|
||||||
void Config::bootInfo() {
|
void Config::bootInfo() {
|
||||||
BOOTLOG("************************************************");
|
BOOTLOG("************************************************");
|
||||||
BOOTLOG("* ёPadio v%s *", VERSION);
|
BOOTLOG("* ёPadio v%s *", YOVERSION);
|
||||||
BOOTLOG("************************************************");
|
BOOTLOG("************************************************");
|
||||||
BOOTLOG("------------------------------------------------");
|
BOOTLOG("------------------------------------------------");
|
||||||
BOOTLOG("arduino:\t%d", ARDUINO);
|
BOOTLOG("arduino:\t%d", ARDUINO);
|
||||||
|
|||||||
@@ -599,7 +599,7 @@ void NetServer::requestOnChange(requestType_e request, uint8_t clientId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String processor(const String& var) { // %Templates%
|
String processor(const String& var) { // %Templates%
|
||||||
if (var == "VERSION") return VERSION;
|
if (var == "VERSION") return YOVERSION;
|
||||||
return String();
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef options_h
|
#ifndef options_h
|
||||||
#define options_h
|
#define options_h
|
||||||
|
|
||||||
#define VERSION "0.8.170"
|
#define YOVERSION "0.8.171"
|
||||||
|
|
||||||
/*******************************************************
|
/*******************************************************
|
||||||
DO NOT EDIT THIS FILE.
|
DO NOT EDIT THIS FILE.
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ void Telnet::on_input(const char* str, byte clientId) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (strcmp(str, "sys.version") == 0 || strcmp(str, "version") == 0) {
|
if (strcmp(str, "sys.version") == 0 || strcmp(str, "version") == 0) {
|
||||||
printf(clientId, "##SYS.VERSION#: %s\n> ", VERSION);
|
printf(clientId, "##SYS.VERSION#: %s\n> ", YOVERSION);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (strcmp(str, "sys.boot") == 0 || strcmp(str, "boot") == 0 || strcmp(str, "reboot") == 0) {
|
if (strcmp(str, "sys.boot") == 0 || strcmp(str, "boot") == 0 || strcmp(str, "reboot") == 0) {
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ void Nextion::loop() {
|
|||||||
if(strcmp(scanBuf, "player") == 0) display.putRequest(NEWMODE, PLAYER);
|
if(strcmp(scanBuf, "player") == 0) display.putRequest(NEWMODE, PLAYER);
|
||||||
if(strcmp(scanBuf, "playlist") == 0) display.putRequest(NEWMODE, STATIONS);
|
if(strcmp(scanBuf, "playlist") == 0) display.putRequest(NEWMODE, STATIONS);
|
||||||
if(strcmp(scanBuf, "info") == 0) {
|
if(strcmp(scanBuf, "info") == 0) {
|
||||||
putcmd("yoversion.txt", VERSION);
|
putcmd("yoversion.txt", YOVERSION);
|
||||||
putcmd("espcore.txt", _espcoreversion);
|
putcmd("espcore.txt", _espcoreversion);
|
||||||
putcmd("ipaddr.txt", WiFi.localIP().toString().c_str());
|
putcmd("ipaddr.txt", WiFi.localIP().toString().c_str());
|
||||||
putcmd("ssid.txt", WiFi.SSID().c_str());
|
putcmd("ssid.txt", WiFi.SSID().c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user