pengfei wu
/
ESP8266Program
For test
Diff: ArduinoSerial.cpp
- Revision:
- 18:37254b357abd
- Parent:
- 15:f5682fb5b315
- Child:
- 19:6c8b29734511
--- a/ArduinoSerial.cpp Wed Feb 04 03:06:54 2015 +0000 +++ b/ArduinoSerial.cpp Wed Feb 04 09:07:22 2015 +0000 @@ -3,7 +3,7 @@ LinkedListNode ArduinoSerial::list_head = {NULL, NULL}; unsigned int ArduinoSerial::instance_counter = 0; -void ArduinoSerial::uart_irq_callback(void) { +void ArduinoSerial::uartIrqCallback(void) { LinkedListNode *p; for (p = list_head.next; p != &list_head; p = p->next) { if (p->data != NULL) { @@ -22,10 +22,8 @@ } if (add_node_to_tail(&list_head, this) != NULL) { - this->attach(&uart_irq_callback); - logVerbose("Create instance 0x%X ok", this); + this->attach(&uartIrqCallback); } else { - logError("Create instance 0x%X err", this); } } @@ -33,9 +31,7 @@ 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); } }