Fork of the MODSERIAL library by Erik Olieman.
Fork of MODSERIAL by
Diff: INIT.cpp
- Revision:
- 26:eb79370d38a2
- Parent:
- 25:aa4d92532e46
- Child:
- 28:3ba4341d74d6
diff -r aa4d92532e46 -r eb79370d38a2 INIT.cpp --- a/INIT.cpp Thu Nov 22 10:43:21 2012 +0000 +++ b/INIT.cpp Mon Nov 26 09:24:07 2012 +0000 @@ -58,7 +58,7 @@ buffer_out[RxIrq] = 0; buffer_count[RxIrq] = 0; buffer_overflow[RxIrq] = 0; - Serial::attach(this, &MODSERIAL::isr_rx, (SerialIrq)1); + Serial::attach(this, &MODSERIAL::isr_rx, (SerialIrq)RxIrq); buffer_size[TxIrq] = txSize; buffer[TxIrq] = txSize > 0 ? (char *)malloc(buffer_size[TxIrq]) : (char *)NULL; @@ -66,7 +66,7 @@ buffer_out[TxIrq] = 0; buffer_count[TxIrq] = 0; buffer_overflow[TxIrq] = 0; - Serial::attach(this, &MODSERIAL::isr_tx, (SerialIrq)(0)); + Serial::attach(this, &MODSERIAL::isr_tx, (SerialIrq)TxIrq); } else { error("MODSERIAL must have a defined UART to function.");