diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index 643a426b..e33ab54f 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -504,7 +504,8 @@ BusNetwork::BusNetwork(BusConfig &bc, const ColorOrderMap &com) : Bus(bc.type, b } _UDPchannels = _rgbw ? 4 : 3; #ifdef ESP32 - _data = (byte*) heap_caps_calloc_prefer((bc.count * _UDPchannels)+15, sizeof(byte), 3, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT, MALLOC_CAP_DEFAULT|MALLOC_CAP_8BIT, MALLOC_CAP_SPIRAM|MALLOC_CAP_8BIT); + // _data = (byte*) heap_caps_calloc_prefer((bc.count * _UDPchannels)+15, sizeof(byte), 3, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT, MALLOC_CAP_DEFAULT|MALLOC_CAP_8BIT, MALLOC_CAP_SPIRAM|MALLOC_CAP_8BIT); + _data = (byte*) d_calloc((bc.count * _UDPchannels)+15, sizeof(byte)); #else _data = (byte*) calloc((bc.count * _UDPchannels)+15, sizeof(byte)); #endif