Skip to content

Commit 0eb3475

Browse files
committed
add missing get_type() from BlockDevice
1 parent 3839563 commit 0eb3475

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

I2CEEBlockDevice.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,8 @@ bd_size_t I2CEEBlockDevice::size() const
147147
{
148148
return _size;
149149
}
150+
151+
const char *I2CEEBlockDevice::get_type() const
152+
{
153+
return "I2CEE";
154+
}

I2CEEBlockDevice.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ class I2CEEBlockDevice : public BlockDevice {
156156
* @return Size of the underlying device in bytes
157157
*/
158158
virtual bd_size_t size() const;
159+
160+
/** Get the BlockDevice class type.
161+
*
162+
* @return A string representation of the BlockDevice class type.
163+
*/
164+
virtual const char *get_type() const;
159165

160166
private:
161167
I2C * _i2c;

0 commit comments

Comments
 (0)