diff --git a/CHANGELOG.md b/CHANGELOG.md index ed5c8efd3..6cdca74c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file. ### Breaking Changed ### Changed +- Display invert setting after tasmota start in uDisplay driver (#19337) ### Fixed - Shutter invert (#19341) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index f799d720b..6507f4a0e 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -118,6 +118,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm ### Breaking Changed ### Changed +- Display invert setting after tasmota start in uDisplay driver [#19337](https://github.com/arendst/Tasmota/issues/19337) ### Fixed - Shutter invert [#19341](https://github.com/arendst/Tasmota/issues/19341) diff --git a/tasmota/tasmota_xdsp_display/xdsp_17_universal.ino b/tasmota/tasmota_xdsp_display/xdsp_17_universal.ino index 5482183eb..c0a1a377f 100644 --- a/tasmota/tasmota_xdsp_display/xdsp_17_universal.ino +++ b/tasmota/tasmota_xdsp_display/xdsp_17_universal.ino @@ -454,6 +454,15 @@ int8_t cs; Settings->display_width = renderer->width(); Settings->display_height = renderer->height(); + bool iniinv = Settings->display_options.invert; + cp = strstr(ddesc, ":n,"); + if (cp) { + cp+=3; + iniinv = strtol(cp, &cp, 10); + Settings->display_options.invert = iniinv; + } + renderer->invertDisplay(iniinv); + ApplyDisplayDimmer(); #ifdef SHOW_SPLASH