Unverified Commit 1ac42f7a authored by Alexander Entinger's avatar Alexander Entinger Committed by GitHub

Revert "Declare TwoWire functions as virtual" (#412)

parent 5fb6220f
...@@ -50,31 +50,31 @@ class TwoWire : public Stream ...@@ -50,31 +50,31 @@ class TwoWire : public Stream
static void onReceiveService(uint8_t*, int); static void onReceiveService(uint8_t*, int);
public: public:
TwoWire(); TwoWire();
virtual void begin(); void begin();
virtual void begin(uint8_t); void begin(uint8_t);
virtual void begin(int); void begin(int);
virtual void end(); void end();
virtual void setClock(uint32_t); void setClock(uint32_t);
virtual void setWireTimeout(uint32_t timeout = 25000, bool reset_with_timeout = false); void setWireTimeout(uint32_t timeout = 25000, bool reset_with_timeout = false);
virtual bool getWireTimeoutFlag(void); bool getWireTimeoutFlag(void);
virtual void clearWireTimeoutFlag(void); void clearWireTimeoutFlag(void);
virtual void beginTransmission(uint8_t); void beginTransmission(uint8_t);
virtual void beginTransmission(int); void beginTransmission(int);
virtual uint8_t endTransmission(void); uint8_t endTransmission(void);
virtual uint8_t endTransmission(uint8_t); uint8_t endTransmission(uint8_t);
virtual uint8_t requestFrom(uint8_t, uint8_t); uint8_t requestFrom(uint8_t, uint8_t);
virtual uint8_t requestFrom(uint8_t, uint8_t, uint8_t); uint8_t requestFrom(uint8_t, uint8_t, uint8_t);
virtual uint8_t requestFrom(uint8_t, uint8_t, uint32_t, uint8_t, uint8_t); uint8_t requestFrom(uint8_t, uint8_t, uint32_t, uint8_t, uint8_t);
virtual uint8_t requestFrom(int, int); uint8_t requestFrom(int, int);
virtual uint8_t requestFrom(int, int, int); uint8_t requestFrom(int, int, int);
virtual size_t write(uint8_t); virtual size_t write(uint8_t);
virtual size_t write(const uint8_t *, size_t); virtual size_t write(const uint8_t *, size_t);
virtual int available(void); virtual int available(void);
virtual int read(void); virtual int read(void);
virtual int peek(void); virtual int peek(void);
virtual void flush(void); virtual void flush(void);
virtual void onReceive( void (*)(int) ); void onReceive( void (*)(int) );
virtual void onRequest( void (*)(void) ); void onRequest( void (*)(void) );
inline size_t write(unsigned long n) { return write((uint8_t)n); } inline size_t write(unsigned long n) { return write((uint8_t)n); }
inline size_t write(long n) { return write((uint8_t)n); } inline size_t write(long n) { return write((uint8_t)n); }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment