1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-31 11:23:44 +02:00

take into account that the reset packets are sent first #repeat packets into the future

This commit is contained in:
Harald Barth
2022-08-04 09:50:20 +02:00
parent f57fd245a1
commit 67b14ec57d
4 changed files with 13 additions and 11 deletions

View File

@@ -243,7 +243,8 @@ void DCCWaveform::schedulePacket(const byte buffer[], byte byteCount, byte repea
pendingPacket[byteCount] = checksum;
pendingLength = byteCount + 1;
pendingRepeats = repeats;
clearResets();
// The resets will be zero not only now but as well repeats packets into the future
clearResets(repeats+1);
{
int ret;
do {