E8WATS

Fork of RemoteIR by Shinichiro Nakamura

Revision:
2:08836610bd4a
Parent:
0:ec264f4ce158
Child:
3:dfed23b157e6
diff -r 4adf16017a0f -r 08836610bd4a TransmitterIR.cpp
--- a/TransmitterIR.cpp	Tue Aug 17 09:14:49 2010 +0000
+++ b/TransmitterIR.cpp	Tue Aug 17 10:37:41 2010 +0000
@@ -11,11 +11,6 @@
 #define IRQ_DISABLE()   sem.take(); __disable_irq()
 
 TransmitterIR::TransmitterIR(PinName txpin) : tx(txpin) {
-}
-
-TransmitterIR::~TransmitterIR() {}
-
-void TransmitterIR::init(void) {
     tx.write(0.0);
     tx.period_us(26.3);
 
@@ -29,6 +24,9 @@
     data.bitlength = 0;
 }
 
+TransmitterIR::~TransmitterIR() {
+}
+
 TransmitterIR::State TransmitterIR::getState(void) {
     IRQ_DISABLE();
     State s = work.state;