Skip to content

Commit

Permalink
ESP32 Bugfix: Uninitialized stack variable. Will bite you with infini…
Browse files Browse the repository at this point in the history
…te loop if no tracks are defined
  • Loading branch information
habazut committed Apr 1, 2024
1 parent 87073b0 commit c8f18e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DCCWaveform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c8f18e4

Please sign in to comment.