Skip to content

Commit

Permalink
Changed display invert setting
Browse files Browse the repository at this point in the history
Changed display invert setting after tasmota start in uDisplay driver (#19337)
  • Loading branch information
arendst committed Aug 18, 2023
1 parent e4eb919 commit 5b3b2a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 9 additions & 0 deletions tasmota/tasmota_xdsp_display/xdsp_17_universal.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b3b2a7

Please sign in to comment.