mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Use the duplex flag to indicate that a DVMega is being used.
This commit is contained in:
parent
925f29a982
commit
dd5e86a66d
6 changed files with 12 additions and 29 deletions
|
|
@ -691,7 +691,6 @@ void CMMDVMHost::createDisplay()
|
|||
unsigned int pwmPin = m_conf.getHD44780PWMPin();
|
||||
unsigned int pwmBright = m_conf.getHD44780PWMBright();
|
||||
unsigned int pwmDim = m_conf.getHD44780PWMDim();
|
||||
bool dvmegaDisplay = m_conf.getHD44780DVMegaDisplay();
|
||||
|
||||
if (pins.size() == 6U) {
|
||||
LogInfo(" Rows: %u", rows);
|
||||
|
|
@ -705,10 +704,7 @@ void CMMDVMHost::createDisplay()
|
|||
LogInfo(" PWM Dim: %u", pwmDim);
|
||||
}
|
||||
|
||||
if (dvmegaDisplay)
|
||||
LogInfo("Using DVMega display output on HD44780");
|
||||
|
||||
m_display = new CHD44780(rows, columns, callsign, dmrid, pins, pwm, pwmPin, pwmBright, pwmDim, dvmegaDisplay);
|
||||
m_display = new CHD44780(rows, columns, callsign, dmrid, pins, pwm, pwmPin, pwmBright, pwmDim, m_duplex);
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue