Browse Source

made init() a public function in posix I2C

sbg
Jake Dahl 6 years ago committed by Daniel Agar
parent
commit
7fb73ae2c0
  1. 4
      src/lib/drivers/device/posix/I2C.hpp

4
src/lib/drivers/device/posix/I2C.hpp

@ -60,6 +60,8 @@ class __EXPORT I2C : public CDev @@ -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: @@ -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.
*/

Loading…
Cancel
Save