pengfei wu
/
ESP8266Program
For test
Diff: ArduinoSerial.cpp
- Revision:
- 14:40b1decf03f3
- Parent:
- 12:4e4e72f18047
- Child:
- 15:f5682fb5b315
--- a/ArduinoSerial.cpp Tue Feb 03 07:57:28 2015 +0000 +++ b/ArduinoSerial.cpp Tue Feb 03 09:10:16 2015 +0000 @@ -5,7 +5,6 @@ void ArduinoSerial::uart_irq_callback(void) { LinkedListNode *p; - for (p = list_head.next; p != &list_head; p = p->next) { if (p->data != NULL) { while(p->data->readable()) { @@ -23,10 +22,8 @@ } if (add_node_to_tail(&list_head, this) != NULL) { - this->attach(&uart_irq_callback); - //printf("Create instance 0x%X ok!\r\n", this); + this->attach(&uart_irq_callback); } else { - //printf("Create instance 0x%X failed!\r\n", this); } } @@ -34,9 +31,7 @@ instance_counter--; if (del_node_by_data(&list_head, this) != NULL) { this->attach(NULL); - //printf("Release instance 0x%X ok!\r\n", this); } else { - //printf("Release instance 0x%X failed!\r\n", this); } }