mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +01:00
Preamble count to include previous stop bit
This commit is contained in:
parent
effbdea477
commit
b2a9022c19
@ -52,7 +52,9 @@ DCCWaveform::DCCWaveform( byte preambleBits, bool isMain) {
|
|||||||
packetPending = false;
|
packetPending = false;
|
||||||
memcpy(transmitPacket, idlePacket, sizeof(idlePacket));
|
memcpy(transmitPacket, idlePacket, sizeof(idlePacket));
|
||||||
state = 0;
|
state = 0;
|
||||||
requiredPreambles = preambleBits;
|
// The +1 below is to allow the preamble generator to create the stop bit
|
||||||
|
// fpr the previous packet.
|
||||||
|
requiredPreambles = preambleBits+1;
|
||||||
bytes_sent = 0;
|
bytes_sent = 0;
|
||||||
bits_sent = 0;
|
bits_sent = 0;
|
||||||
sampleDelay = 0;
|
sampleDelay = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user