From efc6464e8a0fcc45705bb5abc9741b6a7422749f Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 22 Jun 2020 18:39:50 +0200 Subject: [PATCH] further bug fix with clip LED --- src/levelmeter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/levelmeter.cpp b/src/levelmeter.cpp index 49b26269..b81433d8 100755 --- a/src/levelmeter.cpp +++ b/src/levelmeter.cpp @@ -103,6 +103,11 @@ void CLevelMeter::SetLevelMeterType ( const ELevelMeterType eNType ) switch ( eNType ) { case MT_LED: + // initialize all LEDs + for ( int iLEDIdx = 0; iLEDIdx < NUM_LEDS_INCL_CLIP_LED; iLEDIdx++ ) + { + vecpLEDs[iLEDIdx]->SetColor ( cLED::RL_BLACK ); + } pStackedLayout->setCurrentIndex ( 0 ); break;