1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

ESP32 Bugfix: Uninitialized stack variable. Will bite you with infinite loop if no tracks are defined

This commit is contained in:
Harald Barth 2024-04-02 00:02:09 +02:00
parent 87073b0d36
commit c8f18e4d67

View File

@ -294,7 +294,7 @@ void DCCWaveform::schedulePacket(const byte buffer[], byte byteCount, byte repea
// The resets will be zero not only now but as well repeats packets into the future
clearResets(repeats+1);
{
int ret;
int ret = 0;
do {
if(isMainTrack) {
if (rmtMainChannel != NULL)