From 0eb3475c75e9dff7c6c43f95746fdd2b1c68c2f9 Mon Sep 17 00:00:00 2001 From: Pavel Slama Date: Fri, 11 Jan 2019 14:10:29 +0100 Subject: [PATCH] add missing get_type() from BlockDevice --- I2CEEBlockDevice.cpp | 5 +++++ I2CEEBlockDevice.h | 6 ++++++ 2 files changed, 11 insertions(+) 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;