style(ui): use NSDMI for SH1106Display::_use_lemon default

Match the rest of the file's defaults; constructor body no longer
re-initialises a field that the in-class initializer already set.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-24 20:33:59 +02:00
co-authored by Claude Sonnet 4.6
parent d981f93e6e
commit 559fe86f20
+2 -2
View File
@@ -21,7 +21,7 @@ class SH1106Display : public DisplayDriver
uint8_t _color; uint8_t _color;
uint8_t _contrast; uint8_t _contrast;
uint8_t _precharge; uint8_t _precharge;
bool _use_lemon; bool _use_lemon = false;
int _text_sz; int _text_sz;
bool i2c_probe(TwoWire &wire, uint8_t addr); bool i2c_probe(TwoWire &wire, uint8_t addr);
@@ -30,7 +30,7 @@ class SH1106Display : public DisplayDriver
public: public:
SH1106Display() : DisplayDriver(128, 64), display(128, 64, &Wire, PIN_OLED_RESET) { SH1106Display() : DisplayDriver(128, 64), display(128, 64, &Wire, PIN_OLED_RESET) {
_isOn = false; _contrast = 255; _precharge = 0x1F; _use_lemon = false; _text_sz = 1; _isOn = false; _contrast = 255; _precharge = 0x1F; _text_sz = 1;
} }
bool begin(); bool begin();