Ralf Ahlbrink / LogUtil

Fork of LogUtil by Sam Grove

Files at this revision

API Documentation at this revision

Comitter:
sam_grove
Date:
Wed May 01 03:51:03 2013 +0000
Parent:
5:1b4f4d4aec8c
Parent:
4:cf2ada8ed11b
Child:
7:ef45bd2cd9bb
Commit message:
Merged LogUtil

Changed in this revision

LogUtil.h Show annotated file Show diff for this revision Revisions of this file
--- a/LogUtil.cpp	Fri Apr 26 06:28:00 2013 +0000
+++ b/LogUtil.cpp	Wed May 01 03:51:03 2013 +0000
@@ -23,9 +23,8 @@
  #include "LogUtil.h"
  #include "mbed.h"
  
- LogUtil::LogUtil()
+ LogUtil::LogUtil() : debug(USBTX, USBRX)
  {
-    Serial debug(USBTX, USBRX);
     debug.baud(921600);
     debug.printf("\033[2J");  // clear the terminal
     debug.printf("\033[1;1H");// and set the cursor to home
@@ -33,4 +32,5 @@
     return;
  }
  
+ 
  
\ No newline at end of file
--- a/LogUtil.h	Fri Apr 26 06:28:00 2013 +0000
+++ b/LogUtil.h	Wed May 01 03:51:03 2013 +0000
@@ -25,6 +25,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include "mbed.h"
 
 #define STREAM      stdout
 #define LOG(...)    \
@@ -79,6 +80,7 @@
     /** Construct the LogUtil class and configure
      */
     LogUtil();
+    Serial debug;
     
 };