mirror of
https://github.com/wled/WLED.git
synced 2025-07-12 13:26:33 +00:00
Fix for short IP in 4LD.
This commit is contained in:
parent
1a80439825
commit
8574bf9d98
@ -294,6 +294,7 @@ class FourLineDisplayUsermod : public Usermod {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// do not update lastRedraw marker if just switching row contenet
|
||||||
if (((now - lastRedraw)/1000)%5 != 0) lastRedraw = now;
|
if (((now - lastRedraw)/1000)%5 != 0) lastRedraw = now;
|
||||||
|
|
||||||
// Turn the display back on
|
// Turn the display back on
|
||||||
@ -326,13 +327,12 @@ class FourLineDisplayUsermod : public Usermod {
|
|||||||
drawString(1, lineHeight, apPass);
|
drawString(1, lineHeight, apPass);
|
||||||
} else {
|
} else {
|
||||||
// alternate IP address and server name
|
// alternate IP address and server name
|
||||||
String serverName = serverDescription;
|
String secondLine = knownIp.toString();
|
||||||
if (serverName != String("WLED")) {
|
if (showName && strcmp(serverDescription, "WLED") != 0) {
|
||||||
for (uint8_t i=serverName.length(); i<getCols()-1; i++) serverName += ' ';
|
secondLine = serverDescription;
|
||||||
//drawGlyph(0, lineHeight, 68, u8x8_font_open_iconic_embedded_1x1); // wifi icon
|
|
||||||
if (showName) drawString(1, lineHeight, serverName.c_str());
|
|
||||||
else drawString(1, lineHeight, (knownIp.toString()).c_str());
|
|
||||||
}
|
}
|
||||||
|
for (uint8_t i=secondLine.length(); i<getCols()-1; i++) secondLine += ' ';
|
||||||
|
drawString(1, lineHeight, secondLine.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw third and fourth row
|
// draw third and fourth row
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// version code in format yymmddb (b = daily build)
|
// version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 2106152
|
#define VERSION 2106161
|
||||||
|
|
||||||
//uncomment this if you have a "my_config.h" file you'd like to use
|
//uncomment this if you have a "my_config.h" file you'd like to use
|
||||||
//#define WLED_USE_MY_CONFIG
|
//#define WLED_USE_MY_CONFIG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user