Change incorrect variable type to unsigned int

This commit is contained in:
Tony Corbett G0WFV
2016-06-30 20:35:32 +01:00
parent 2b5c66ca85
commit 8801355ace
5 changed files with 8 additions and 8 deletions

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 = 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;
}