Benjamin Hepp / BufferedSerial

Dependencies:   Buffer

Fork of BufferedSerial by Sam Grove

Revision:
14:2150f1edc9bc
Parent:
13:b4080afc8cd5
--- a/BufferedSerial.h	Sat Feb 13 17:10:39 2016 +0000
+++ b/BufferedSerial.h	Mon Apr 04 11:19:49 2016 +0000
@@ -65,6 +65,7 @@
  * @endcode
  */
 
+
 /**
  *  @class BufferedSerial
  *  @brief Software buffers and interrupt driven tx and rx for Serial
@@ -82,6 +83,16 @@
     void prime(void);
 
 public:
+    // TODO
+    void static blocking_printf(const char* str, ...) {
+        va_list args;
+        va_start(args, str);
+    //    char buffer[1024];
+    //    int n = vsnprintf(buffer, sizeof(buffer), str, args);
+        vprintf(str, args);
+        va_end(args);
+    }
+
     /** Create a BufferedSerial port, connected to the specified transmit and receive pins
      *  @param tx Transmit pin
      *  @param rx Receive pin