SSI OpComms 3 CM TX

Dependencies:   mbed

Fork of Optical3cmTXnucleo by Thomas Teisberg

Revision:
2:eb6621f41f07
Parent:
1:a5e80a54e72f
Child:
3:9c564c7cbabf
Child:
4:024257aaea1e
--- a/main.cpp	Sun Nov 08 00:26:32 2015 +0000
+++ b/main.cpp	Sun Nov 08 00:58:35 2015 +0000
@@ -64,7 +64,7 @@
     //Time off = PULSE_LENGTH*(data value)
     //  For example, a 01 transmitted would have a difference between pulses of 2 PULSE_LENGTH
     tx = 0;
-    wait_us(PULSE_LENGTH*data);
+    wait_us(PULSE_LENGTH*(data+1));
     tx = 1;
 }