forked SoftSerial
Fork of SoftSerial by
Diff: SoftSerial.cpp
- Revision:
- 9:4e4617c4a441
- Parent:
- 6:517082212c00
- Child:
- 11:a0029614de72
--- a/SoftSerial.cpp Sun Apr 27 19:48:40 2014 +0000
+++ b/SoftSerial.cpp Sat Jul 05 08:07:49 2014 +0000
@@ -21,6 +21,13 @@
format();
}
+SoftSerial::~SoftSerial() {
+ if (tx_en)
+ delete(tx);
+ if (rx_en)
+ delete(rx);
+}
+
void SoftSerial::baud(int baudrate) {
bit_period = 1000000 / baudrate;
}
