Changed display invert setting

Changed display invert setting after tasmota start in uDisplay driver (#19337)
This commit is contained in:
Theo Arends 2023-08-18 11:34:01 +02:00
parent e4eb919c93
commit 5b3b2a7a62
3 changed files with 11 additions and 0 deletions

View File

@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
### Breaking Changed ### Breaking Changed
### Changed ### Changed
- Display invert setting after tasmota start in uDisplay driver (#19337)
### Fixed ### Fixed
- Shutter invert (#19341) - Shutter invert (#19341)

View File

@ -118,6 +118,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
### Breaking Changed ### Breaking Changed
### Changed ### Changed
- Display invert setting after tasmota start in uDisplay driver [#19337](https://github.com/arendst/Tasmota/issues/19337)
### Fixed ### Fixed
- Shutter invert [#19341](https://github.com/arendst/Tasmota/issues/19341) - Shutter invert [#19341](https://github.com/arendst/Tasmota/issues/19341)

View File

@ -454,6 +454,15 @@ int8_t cs;
Settings->display_width = renderer->width(); Settings->display_width = renderer->width();
Settings->display_height = renderer->height(); 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(); ApplyDisplayDimmer();
#ifdef SHOW_SPLASH #ifdef SHOW_SPLASH