From c8f18e4d67e4edd87037718b4c255bd555466015 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Tue, 2 Apr 2024 00:02:09 +0200 Subject: [PATCH] ESP32 Bugfix: Uninitialized stack variable. Will bite you with infinite loop if no tracks are defined --- DCCWaveform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DCCWaveform.cpp b/DCCWaveform.cpp index 2d50929..3d77e9e 100644 --- a/DCCWaveform.cpp +++ b/DCCWaveform.cpp @@ -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)