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:
- 8:332b66de89d3
- Parent:
- 7:7de3e1019e23
diff -r 7de3e1019e23 -r 332b66de89d3 SoftSerial_tx.cpp
--- a/SoftSerial_tx.cpp Sun Apr 27 19:48:17 2014 +0000
+++ b/SoftSerial_tx.cpp Sun Apr 27 19:48:40 2014 +0000
@@ -14,7 +14,7 @@
while(!writeable());
tx_bit = 0; //Just to make sure it appears as non-writable to other threads/IRQs
tx->write(0);
- wait_us(bit_period * _total_bits * 3 / 2);
+ wait_us((bit_period * _total_bits * 3) / 2);
tx->write(1);
tx_bit = -1;
}
