diff --git a/I2CEEBlockDevice.cpp b/I2CEEBlockDevice.cpp index e1870ab529..7a0fed2a6d 100644 --- a/I2CEEBlockDevice.cpp +++ b/I2CEEBlockDevice.cpp @@ -147,3 +147,8 @@ bd_size_t I2CEEBlockDevice::size() const { return _size; } + +const char *I2CEEBlockDevice::get_type() const +{ + return "I2CEE"; +} diff --git a/I2CEEBlockDevice.h b/I2CEEBlockDevice.h index da4732d1e7..0e083eae67 100644 --- a/I2CEEBlockDevice.h +++ b/I2CEEBlockDevice.h @@ -156,6 +156,12 @@ public: * @return Size of the underlying device in bytes */ 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;