mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-30 14:16:32 +00:00
Update xdsp_01_lcd.ino
This commit is contained in:
parent
be82878bd2
commit
9dc445f949
@ -104,7 +104,7 @@ void LcdCenter(uint8_t row, char* txt)
|
|||||||
int len = strlen(txt);
|
int len = strlen(txt);
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
if (len >= Settings.display_cols[0]) {
|
if (len >= Settings.display_cols[0]) {
|
||||||
len = Settings.display_cols[0]
|
len = Settings.display_cols[0];
|
||||||
} else {
|
} else {
|
||||||
offset = (Settings.display_cols[0] - len) / 2;
|
offset = (Settings.display_cols[0] - len) / 2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user