From c8f18e4d67e4edd87037718b4c255bd555466015 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Tue, 2 Apr 2024 00:02:09 +0200 Subject: [PATCH 1/2] 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) From 02bf50b909c03acf22a3396ca72ee14c98ee134d Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Tue, 2 Apr 2024 00:05:30 +0200 Subject: [PATCH 2/2] version --- GITHUB_SHA.h | 2 +- version.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/GITHUB_SHA.h b/GITHUB_SHA.h index e5f3571..5d6ee02 100644 --- a/GITHUB_SHA.h +++ b/GITHUB_SHA.h @@ -1 +1 @@ -#define GITHUB_SHA "devel-202403182018Z" +#define GITHUB_SHA "devel-202404012205Z" diff --git a/version.h b/version.h index f292b43..1f11713 100644 --- a/version.h +++ b/version.h @@ -3,7 +3,8 @@ #include "StringFormatter.h" -#define VERSION "5.2.41" +#define VERSION "5.2.42" +// 5.2.42 - ESP32 Bugfix: Uninitialized stack variable // 5.2.41 - Update rotary encoder default address to 0x67 // 5.2.40 - Allow no shield // 5.2.39 - Functions for DC frequency: Use func up to F31