From 349578fb6ea22b29ef4ce8e19964af466f22e7c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kristan?= Date: Sat, 11 Mar 2023 22:33:06 +0100 Subject: [PATCH] whitespace cleanup --- wled00/bus_manager.cpp | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index 9e4d54a4d..a444f669c 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -383,24 +383,20 @@ uint8_t BusOnOff::getPins(uint8_t* pinArray) { BusNetwork::BusNetwork(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWhite) { _valid = false; - switch (bc.type) { - case TYPE_NET_ARTNET_RGB: - _rgbw = false; - _UDPtype = 2; - break; - case TYPE_NET_E131_RGB: - _rgbw = false; - _UDPtype = 1; - break; - case TYPE_NET_DDP_RGB: - _rgbw = false; - _UDPtype = 0; - break; - default: // TYPE_NET_DDP_RGB / TYPE_NET_DDP_RGBW + switch (bc.type) { + case TYPE_NET_ARTNET_RGB: + _rgbw = false; + _UDPtype = 2; + break; + case TYPE_NET_E131_RGB: + _rgbw = false; + _UDPtype = 1; + break; + default: // TYPE_NET_DDP_RGB / TYPE_NET_DDP_RGBW _rgbw = bc.type == TYPE_NET_DDP_RGBW; _UDPtype = 0; - break; - } + break; + } _UDPchannels = _rgbw ? 4 : 3; _data = (byte *)malloc(bc.count * _UDPchannels); if (_data == nullptr) return; @@ -563,4 +559,4 @@ uint16_t BusManager::getTotalLength() { // Bus static member definition int16_t Bus::_cct = -1; uint8_t Bus::_cctBlend = 0; -uint8_t Bus::_gAWM = 255; \ No newline at end of file +uint8_t Bus::_gAWM = 255;