E8WATS
Fork of RemoteIR by
Diff: TransmitterIR.cpp
- Revision:
- 10:c54fb1204d1e
- Parent:
- 9:dcfdac59ef74
- Child:
- 11:268cc2ab63bd
--- 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; }