Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of com by
Revision 11:d1f488302d06, committed 2014-04-25
- Comitter:
- oprospero
- Date:
- Fri Apr 25 06:21:19 2014 +0000
- Parent:
- 10:ec36e1b59a39
- Child:
- 12:bf4642578682
- Commit message:
- small updates;
Changed in this revision
com.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/com.cpp Fri Apr 25 06:14:36 2014 +0000 +++ b/com.cpp Fri Apr 25 06:21:19 2014 +0000 @@ -102,14 +102,14 @@ void com::ackCheck() { - __disable_irq(); if( !txBuffer->isEmpty() && xbeeTx.writeable()) { + __disable_irq(); short * pkt = txBuffer->pop(); write(pkt[0],pkt[1]); //may need to disable interrupt delete[] pkt; + __enable_irq(); } - __enable_irq(); } bool com::rdy2ack()