mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Clean up the OLED configuration.
This commit is contained in:
parent
8f2a2a1d46
commit
b69336dca1
5 changed files with 23 additions and 24 deletions
|
|
@ -1134,10 +1134,10 @@ void CMMDVMHost::createDisplay()
|
|||
|
||||
#if defined(OLED)
|
||||
} else if (type == "OLED") {
|
||||
unsigned char displayType = m_conf.getOLEDType();
|
||||
unsigned char displayBrightness = m_conf.getOLEDBrightness();
|
||||
unsigned char displayInvert = m_conf.getOLEDInvert();
|
||||
m_display = new COLED(displayType, displayBrightness, displayInvert);
|
||||
unsigned char type = m_conf.getOLEDType();
|
||||
unsigned char brightness = m_conf.getOLEDBrightness();
|
||||
bool invert = m_conf.getOLEDInvert();
|
||||
m_display = new COLED(type, brightness, invert);
|
||||
#endif
|
||||
} else {
|
||||
m_display = new CNullDisplay;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue