Removed verbose live mode info from HTTP API

Add logo without background tags
pull/1101/head
cschwinne 2020-08-19 09:10:47 +02:00
rodzic a5c57d7fb0
commit b1c9dbd0a5
3 zmienionych plików z 7 dodań i 32 usunięć

Wyświetl plik

@ -2,9 +2,13 @@
### Development versions after 0.10.0 release ### Development versions after 0.10.0 release
#### Build 2008140
- Removed verbose live mode info from `<ds>` in HTTP API response
#### Build 2008100 #### Build 2008100
- Fixed Auto White calculation dropdown (fixed #1088) - Fixed Auto White mode setting (fixes #1088)
#### Build 2008070 #### Build 2008070

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 2.5 KiB

Wyświetl plik

@ -60,39 +60,10 @@ void XML_response(AsyncWebServerRequest *request, char* dest)
oappend("</ps><cy>"); oappend("</ps><cy>");
oappendi(presetCyclingEnabled); oappendi(presetCyclingEnabled);
oappend("</cy><ds>"); oappend("</cy><ds>");
oappend(serverDescription);
if (realtimeMode) if (realtimeMode)
{ {
String mesg = "Live "; oappend(" (live)");
if (realtimeMode == REALTIME_MODE_E131 || realtimeMode == REALTIME_MODE_ARTNET)
{
mesg += (realtimeMode == REALTIME_MODE_E131) ? "E1.31" : "Art-Net";
mesg += " mode ";
mesg += DMXMode;
mesg += F(" at DMX Address ");
mesg += DMXAddress;
mesg += " from ";
mesg += realtimeIP[0];
for (int i = 1; i < 4; i++)
{
mesg += ".";
mesg += realtimeIP[i];
}
} else if (realtimeMode == REALTIME_MODE_UDP || realtimeMode == REALTIME_MODE_HYPERION || realtimeMode == REALTIME_MODE_TPM2NET) {
mesg += "UDP from ";
mesg += realtimeIP[0];
for (int i = 1; i < 4; i++)
{
mesg += ".";
mesg += realtimeIP[i];
}
} else if (realtimeMode == REALTIME_MODE_ADALIGHT) {
mesg += F("USB Adalight");
} else { //generic
mesg += "data";
}
oappend((char*)mesg.c_str());
} else {
oappend(serverDescription);
} }
oappend("</ds><ss>"); oappend("</ds><ss>");
oappendi(strip.getMainSegmentId()); oappendi(strip.getMainSegmentId());