mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 00:35:53 +08:00
Import address as hex value
This commit is contained in:
2
Conf.cpp
2
Conf.cpp
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user