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 RemoteIR by
Diff: TransmitterIR.cpp
- Revision:
- 10:c54fb1204d1e
- Parent:
- 9:dcfdac59ef74
- Child:
- 11:268cc2ab63bd
diff -r dcfdac59ef74 -r c54fb1204d1e TransmitterIR.cpp --- a/TransmitterIR.cpp Fri Sep 17 20:22:38 2010 +0000 +++ b/TransmitterIR.cpp Fri Sep 17 21:44:01 2010 +0000 @@ -7,8 +7,8 @@ #include "TransmitterIR.h" -#define LOCK() sem.take() -#define UNLOCK() sem.release() +#define LOCK() +#define UNLOCK() TransmitterIR::TransmitterIR(PinName txpin) : tx(txpin) { tx.write(0.0); @@ -31,7 +31,6 @@ LOCK(); State s = work.state; UNLOCK(); - wait_ms(10); return s; }