For test

Dependencies:   mbed

Revision:
15:f5682fb5b315
Parent:
14:40b1decf03f3
Child:
18:37254b357abd
--- a/ArduinoSerial.cpp	Tue Feb 03 09:10:16 2015 +0000
+++ b/ArduinoSerial.cpp	Tue Feb 03 10:50:05 2015 +0000
@@ -23,15 +23,19 @@
     
     if (add_node_to_tail(&list_head, this) != NULL) {
         this->attach(&uart_irq_callback);   
+        logVerbose("Create instance 0x%X ok", this);
     } else {
+        logError("Create instance 0x%X err", this);
     }
 }
-    
+
 ArduinoSerial::~ArduinoSerial(void) {
     instance_counter--;
     if (del_node_by_data(&list_head, this) != NULL) {
         this->attach(NULL); 
+        logVerbose("Release instance 0x%X ok", this);
     } else {
+        logError("Release instance 0x%X err", this);
     }
 }