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; return _size;
} }
const char *I2CEEBlockDevice::get_type() const
{
return "I2CEE";
}

View File

@ -156,6 +156,12 @@ public:
* @return Size of the underlying device in bytes * @return Size of the underlying device in bytes
*/ */
virtual bd_size_t size() const; 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: private:
I2C * _i2c; I2C * _i2c;