Use the duplex flag to indicate that a DVMega is being used.

This commit is contained in:
Jonathan Naylor
2016-05-05 17:08:23 +01:00
parent 925f29a982
commit dd5e86a66d
6 changed files with 12 additions and 29 deletions

View File

@@ -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 {