From 7fb73ae2c0e66a96c3850e7e45c7f85d364c71ac Mon Sep 17 00:00:00 2001 From: Jake Dahl Date: Tue, 16 Oct 2018 17:46:26 -0600 Subject: [PATCH] made init() a public function in posix I2C --- src/lib/drivers/device/posix/I2C.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/drivers/device/posix/I2C.hpp b/src/lib/drivers/device/posix/I2C.hpp index 17240fd55e..6ea4a19606 100644 --- a/src/lib/drivers/device/posix/I2C.hpp +++ b/src/lib/drivers/device/posix/I2C.hpp @@ -60,6 +60,8 @@ class __EXPORT I2C : public CDev public: + virtual int init(); + protected: /** * The number of times a read or write operation will be retried on @@ -79,8 +81,6 @@ protected: I2C(const char *name, const char *devname, int bus, uint16_t address, uint32_t frequency = 0); virtual ~I2C(); - virtual int init(); - /** * Check for the presence of the device on the bus. */