Skip to content

Commit

Permalink
Removed verbose live mode info from HTTP API
Browse files Browse the repository at this point in the history
Add logo without background tags
  • Loading branch information
Aircoookie committed Aug 19, 2020
1 parent a5c57d7 commit b1c9dbd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 32 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

### Development versions after 0.10.0 release

#### Build 2008140

- Removed verbose live mode info from `<ds>` in HTTP API response

#### Build 2008100

- Fixed Auto White calculation dropdown (fixed #1088)
- Fixed Auto White mode setting (fixes #1088)

#### Build 2008070

Expand Down
Binary file added images/wled_logo_clean.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 2 additions & 31 deletions wled00/xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,39 +60,10 @@ void XML_response(AsyncWebServerRequest *request, char* dest)
oappend("</ps><cy>");
oappendi(presetCyclingEnabled);
oappend("</cy><ds>");
oappend(serverDescription);
if (realtimeMode)
{
String mesg = "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(" (live)");
}
oappend("</ds><ss>");
oappendi(strip.getMainSegmentId());
Expand Down

0 comments on commit b1c9dbd

Please sign in to comment.