From 2e80d96400cbebfc0612b5e2a210baa3e10a6e02 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:24:34 +0100 Subject: [PATCH] HUB75 - comment out dead code --- wled00/bus_manager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index aea8051a..4cd339a4 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -1011,6 +1011,10 @@ void __attribute__((hot)) BusHub75Matrix::setPixelColor(uint16_t pix, uint32_t c setBitInArray(_ledsDirty, pix, true); // flag pixel as "dirty" } } + #if 0 + // !! this code is not used any more !! + // BusHub75Matrix::BusHub75Matrix will fail if allocating _ledBuffer fails. + // The fallback code below created lots of flickering so it does not make sense to keep it enabled. else { // no double buffer allocated --> directly draw pixel MatrixPanel_I2S_DMA* display = BusHub75Matrix::activeDisplay; @@ -1034,6 +1038,7 @@ void __attribute__((hot)) BusHub75Matrix::setPixelColor(uint16_t pix, uint32_t c display->drawPixelRGB888(int16_t(x), int16_t(y), r, g, b); } } + #endif } uint32_t BusHub75Matrix::getPixelColor(uint16_t pix) const {