mirror of
https://github.com/wled/WLED.git
synced 2025-04-23 22:37:18 +00:00
Uninitialised _data bugfix
This commit is contained in:
parent
c43d09c8b1
commit
ed91c54654
@ -125,6 +125,7 @@ BusDigital::BusDigital(const BusConfig &bc, uint8_t nr)
|
||||
, _colorOrder(bc.colorOrder)
|
||||
, _milliAmpsPerLed(bc.milliAmpsPerLed)
|
||||
, _milliAmpsMax(bc.milliAmpsMax)
|
||||
, _data(nullptr)
|
||||
{
|
||||
if (!isDigital(bc.type) || !bc.count) return;
|
||||
if (!PinManager::allocatePin(bc.pins[0], true, PinOwner::BusDigital)) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user