diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-05-22 19:17:58 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-05-22 19:17:58 +0200 |
commit | 4f9abc42e04e17658a3ab6079c831ab2f4d0f480 (patch) | |
tree | a81d625ff775d0ac734d1ca33d62ca8bae997040 /libraries/Bridge/Console.h | |
parent | b822bd357cc4d8840d0d14c5520a1414bb900723 (diff) |
Updated Console class. New ConsoleAsciiTable example.
Diffstat (limited to 'libraries/Bridge/Console.h')
-rw-r--r-- | libraries/Bridge/Console.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libraries/Bridge/Console.h b/libraries/Bridge/Console.h index 72a3967..73a9739 100644 --- a/libraries/Bridge/Console.h +++ b/libraries/Bridge/Console.h @@ -32,7 +32,8 @@ public: void begin(); void end(); - void setBuffer(uint8_t size); + void buffer(uint8_t size); + void noBuffer(); bool connected(); @@ -52,10 +53,10 @@ private: BridgeClass &bridge; void doBuffer(); - uint8_t buffered; - uint8_t readPos; + uint8_t inBuffered; + uint8_t inReadPos; static const int BUFFER_SIZE = 32; - uint8_t *buffer; + uint8_t *inBuffer; bool autoFlush; uint8_t outBuffered; |