Forgot MMDVMHost.cpp!
This commit is contained in:
parent
9e6c7cff42
commit
f31a8815cb
|
@ -691,6 +691,7 @@ void CMMDVMHost::createDisplay()
|
||||||
unsigned int pwmPin = m_conf.getHD44780PWMPin();
|
unsigned int pwmPin = m_conf.getHD44780PWMPin();
|
||||||
unsigned int pwmBright = m_conf.getHD44780PWMBright();
|
unsigned int pwmBright = m_conf.getHD44780PWMBright();
|
||||||
unsigned int pwmDim = m_conf.getHD44780PWMDim();
|
unsigned int pwmDim = m_conf.getHD44780PWMDim();
|
||||||
|
bool dvmegaDisplay = m_conf.getHD44780DVMegaDisplay();
|
||||||
|
|
||||||
if (pins.size() == 6U) {
|
if (pins.size() == 6U) {
|
||||||
LogInfo(" Rows: %u", rows);
|
LogInfo(" Rows: %u", rows);
|
||||||
|
@ -704,7 +705,10 @@ void CMMDVMHost::createDisplay()
|
||||||
LogInfo(" PWM Dim: %u", pwmDim);
|
LogInfo(" PWM Dim: %u", pwmDim);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_display = new CHD44780(rows, columns, callsign, dmrid, pins, pwm, pwmPin, pwmBright, pwmDim);
|
if (dvmegaDisplay)
|
||||||
|
LogInfo("Using DVMega display output on 16x2 HD44780");
|
||||||
|
|
||||||
|
m_display = new CHD44780(rows, columns, callsign, dmrid, pins, pwm, pwmPin, pwmBright, pwmDim, dvmegaDisplay);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue