Import address as hex value

This commit is contained in:
Tony Corbett G0WFV
2016-06-30 21:55:02 +01:00
parent 8801355ace
commit f212c47882

View File

@@ -440,7 +440,7 @@ bool CConf::read()
else if (::strcmp(key, "Columns") == 0)
m_hd44780Columns = (unsigned int)::atoi(value);
else if (::strcmp(key, "I2CAddress") == 0)
m_hd44780i2cAddress = (unsigned int)::atoi(value);
m_hd44780i2cAddress = (unsigned int)::strtoul(value, NULL, 16);
else if (::strcmp(key, "PWM") == 0)
m_hd44780PWM = ::atoi(value) == 1;
else if (::strcmp(key, "PWMPin") == 0)