forked SoftSerial
Fork of SoftSerial by
Diff: SoftSerial_tx.cpp
- Revision:
- 6:517082212c00
- Parent:
- 4:c010265ed202
- Child:
- 7:7de3e1019e23
--- 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)
