mirror of https://github.com/arendst/Tasmota.git
Fix logic for choosing default display size
This commit is contained in:
parent
fdda0429d6
commit
7b6850e6be
|
@ -86,10 +86,10 @@ void Ssd1306InitDriver(void)
|
|||
}
|
||||
|
||||
if (XDSP_02 == Settings.display_model) {
|
||||
if ((Settings.display_width != 96) || (Settings.display_width != 128)) {
|
||||
if ((Settings.display_width != 96) && (Settings.display_width != 128)) {
|
||||
Settings.display_width = 128;
|
||||
}
|
||||
if ((Settings.display_height != 16) || (Settings.display_height != 32) || (Settings.display_height != 64)) {
|
||||
if ((Settings.display_height != 16) && (Settings.display_height != 32) && (Settings.display_height != 64)) {
|
||||
Settings.display_height = 64;
|
||||
}
|
||||
int8_t reset_pin = -1;
|
||||
|
|
Loading…
Reference in New Issue