From 2f547367fd58582e6f820fbf0bd6a276288bbc4a Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 5 Jun 2013 20:20:18 +0200 Subject: Added comment to some examples --- libraries/Bridge/examples/ConsoleAsciiTable/ConsoleAsciiTable.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libraries/Bridge/examples/ConsoleAsciiTable/ConsoleAsciiTable.ino') diff --git a/libraries/Bridge/examples/ConsoleAsciiTable/ConsoleAsciiTable.ino b/libraries/Bridge/examples/ConsoleAsciiTable/ConsoleAsciiTable.ino index d547df7..4cdf4c1 100644 --- a/libraries/Bridge/examples/ConsoleAsciiTable/ConsoleAsciiTable.ino +++ b/libraries/Bridge/examples/ConsoleAsciiTable/ConsoleAsciiTable.ino @@ -29,7 +29,7 @@ void setup() { Bridge.begin(); Console.begin(); - // Uncomment the followinf line to enable buffering: + // Uncomment the following line to enable buffering: // - better transmission speed and efficiency // - needs to call Console.flush() to ensure that all // transmitted data is sent @@ -81,6 +81,9 @@ void loop() { // if printed last visible character '~' or 126, stop: if(thisByte == 126) { // you could also use if (thisByte == '~') { + // ensure the latest bit of data is sent + Console.flush(); + // This loop loops forever and does nothing while(true) { continue; -- cgit v1.2.3-18-g5258