Better usage of display with DVMega

This commit is contained in:
Tony Corbett
2016-05-05 16:13:06 +01:00
parent f31a8815cb
commit 5735209394
4 changed files with 36 additions and 19 deletions

View File

@@ -357,7 +357,7 @@ bool CConf::read()
else if (::strcmp(key, "PWMDim") == 0)
m_hd44780PWMDim = (unsigned int)::atoi(value);
else if (::strcmp(key, "DVMegaDisplay") == 0)
m_hd44780DVMegaDisplay = (unsigned int)::atoi(value);
m_hd44780DVMegaDisplay = ::atoi(value) == 1;
else if (::strcmp(key, "Pins") == 0) {
char* p = ::strtok(value, ",\r\n");
while (p != NULL) {