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
Revision 12:55d78fef0327, committed 2017-05-09
- Comitter:
- rsquires
- Date:
- Tue May 09 18:36:31 2017 +0000
- Parent:
- 11:a0029614de72
- Commit message:
- Fixed detach
Changed in this revision
| SoftSerial.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- a/SoftSerial.cpp	Tue Apr 12 16:58:22 2016 +0000
+++ b/SoftSerial.cpp	Tue May 09 18:36:31 2017 +0000
@@ -23,10 +23,14 @@
 }
 
 SoftSerial::~SoftSerial() {
-    if (tx_en)
+    if (tx_en) {
+        txticker.detach();
         delete(tx);
-    if (rx_en)
+    }
+    if (rx_en) {
+        rxticker.detach();
         delete(rx);
+    }
 }
 
 void SoftSerial::baud(int baudrate) {
    