add missing get_type() from BlockDevice

pull/10711/head
Pavel Slama 2019-01-11 14:10:29 +01:00
parent 383956367d
commit 0eb3475c75
2 changed files with 11 additions and 0 deletions

View File

@ -147,3 +147,8 @@ bd_size_t I2CEEBlockDevice::size() const
{
return _size;
}
const char *I2CEEBlockDevice::get_type() const
{
return "I2CEE";
}

View File

@ -157,6 +157,12 @@ public:
*/
virtual bd_size_t size() const;
/** Get the BlockDevice class type.
*
* @return A string representation of the BlockDevice class type.
*/
virtual const char *get_type() const;
private:
I2C * _i2c;
uint32_t _i2c_buffer[sizeof(I2C) / sizeof(uint32_t)];