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 SoftSerial by
Diff: SoftSerial_tx.cpp
- Revision:
- 6:517082212c00
- Parent:
- 4:c010265ed202
- Child:
- 7:7de3e1019e23
diff -r acfd0329f648 -r 517082212c00 SoftSerial_tx.cpp
--- a/SoftSerial_tx.cpp	Sat Apr 26 20:55:02 2014 +0000
+++ b/SoftSerial_tx.cpp	Sun Apr 27 08:33:17 2014 +0000
@@ -5,6 +5,7 @@
     while(!writeable());
     prepare_tx(c);
     tx_bit = 0;
+    txticker.prime();
     tx_handler();
     return 0;
 }
@@ -38,7 +39,7 @@
         tx_bit++;
     }
 
-    txout.attach_us(this, &SoftSerial::tx_handler, count);
+    txticker.setNext(count);
 }
 
 void SoftSerial::prepare_tx(int c)
    