diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-06-24 11:23:35 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-06-26 21:53:22 +0200 |
commit | 70bfc2f3300613119da419cbd6724e443037b1b0 (patch) | |
tree | f852ac54cd1d47a1e275e9499d2bd441be19b1bc /libraries/Bridge/Bridge.h | |
parent | b24534d6a6e996321ff1a1bed67f0a1b6568b2c7 (diff) |
Removed unused Stream interface from Bridge class
Diffstat (limited to 'libraries/Bridge/Bridge.h')
-rw-r--r-- | libraries/Bridge/Bridge.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libraries/Bridge/Bridge.h b/libraries/Bridge/Bridge.h index f606492..3aabeff 100644 --- a/libraries/Bridge/Bridge.h +++ b/libraries/Bridge/Bridge.h @@ -22,7 +22,7 @@ #include <Arduino.h> #include <Stream.h> -class BridgeClass: public Stream { +class BridgeClass { public: BridgeClass(Stream &_stream); void begin(); @@ -40,17 +40,6 @@ public: unsigned int get(const char *key, char *value, unsigned int maxlen) { get(key, reinterpret_cast<uint8_t *>(value), maxlen); } - // Print methods (proxy to "stream" object) [CM: are these really needed?] - size_t write(uint8_t c) { return stream.write(c); } - size_t write(const uint8_t *buffer, size_t size) - { return stream.write(buffer, size); } - - // Stream methods (proxy to "stream" object) [CM: are these really needed?] - int available() { return stream.available(); } - int read() { return stream.read(); } - int peek() { return stream.peek(); } - void flush() { stream.flush(); } - // Trasnfer a frame (with error correction and response) uint16_t transfer(const uint8_t *buff1, uint16_t len1, const uint8_t *buff2, uint16_t len2, |