From f7b8828debf97cee39c98748fce223f9bfa04e04 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Fri, 4 Oct 2024 19:01:27 +0100 Subject: [PATCH] HUB75 - code formatting --- wled00/bus_manager.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index 098935af..52c8814b 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -833,11 +833,10 @@ BusHub75Matrix::BusHub75Matrix(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWh fourScanPanel = nullptr; - if(bc.type == TYPE_HUB75MATRIX_HS) { + if (bc.type == TYPE_HUB75MATRIX_HS) { mxconfig.mx_width = min((u_int8_t) 64, bc.pins[0]); mxconfig.mx_height = min((u_int8_t) 64, bc.pins[1]); - } - else if(bc.type == TYPE_HUB75MATRIX_QS) { + } else if (bc.type == TYPE_HUB75MATRIX_QS) { mxconfig.mx_width = min((u_int8_t) 64, bc.pins[0]) * 2; mxconfig.mx_height = min((u_int8_t) 64, bc.pins[1]) / 2; fourScanPanel = new VirtualMatrixPanel((*display), 1, 1, bc.pins[0], bc.pins[1]); @@ -856,8 +855,7 @@ BusHub75Matrix::BusHub75Matrix(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWh DEBUG_PRINTLN("Unsupported height"); return; } - } - else { + } else { DEBUG_PRINTLN("Unknown type"); return; }