mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-28 05:35:37 +08:00
Change incorrect variable type to unsigned int
This commit is contained in:
4
Conf.cpp
4
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 = value;
|
||||
m_hd44780i2cAddress = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "PWM") == 0)
|
||||
m_hd44780PWM = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "PWMPin") == 0)
|
||||
@@ -892,7 +892,7 @@ std::vector<unsigned int> CConf::getHD44780Pins() const
|
||||
return m_hd44780Pins;
|
||||
}
|
||||
|
||||
std::string CConf::getHD44780i2cAddress() const
|
||||
unsigned int CConf::getHD44780i2cAddress() const
|
||||
{
|
||||
return m_hd44780i2cAddress;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user