mirror of https://github.com/arendst/Tasmota.git
Changed display invert setting
Changed display invert setting after tasmota start in uDisplay driver (#19337)
This commit is contained in:
parent
e4eb919c93
commit
5b3b2a7a62
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue