Bug fix release
Fork of MODSERIAL by
Diff: example2.cpp
- Revision:
- 18:21ef26402365
- Parent:
- 15:a1d9e745d71e
--- a/example2.cpp Tue Mar 08 01:42:25 2011 +0000 +++ b/example2.cpp Thu Apr 21 09:20:41 2011 +0000 @@ -99,9 +99,11 @@ char messageBufferOutgoing[MESSAGE_BUFFER_SIZE]; bool messageReceived; -void messageReceive(void) { - messageSystem.move(messageBufferIncoming, MESSAGE_BUFFER_SIZE); +void messageReceive(MODSERIAL_IRQ_INFO *q) { + MODSERIAL *sys = q->serial; + sys->move(messageBufferIncoming, MESSAGE_BUFFER_SIZE); messageReceived = true; + return 0; } void messageProcess(void) {