i2clcd: added virtual destructor to base lcd class

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2015-06-16 16:48:27 -07:00
parent ec1828f2bc
commit 2fda38f7b1
2 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,10 @@ I2CLcd::I2CLcd(int bus, int lcdAddress) : m_i2c_lcd_control(bus)
}
}
I2CLcd::~I2CLcd()
{
}
mraa_result_t
I2CLcd::write(int row, int column, std::string msg)
{

View File

@ -84,6 +84,7 @@ class I2CLcd
{
public:
I2CLcd(int bus, int lcdAddress);
virtual ~I2CLcd();
mraa_result_t write(int x, int y, std::string msg);
virtual mraa_result_t write(std::string msg) = 0;