From f3de45c6ad7f8a64788ea320212ee4ca933120db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kristan?= Date: Sun, 9 Feb 2025 21:43:35 +0100 Subject: [PATCH] Remove reference to custom allocators --- wled00/bus_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index 2a7dce4f6..cdb00b0b3 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -145,7 +145,7 @@ BusDigital::BusDigital(const BusConfig &bc, uint8_t nr) _hasWhite = hasWhite(bc.type); _hasCCT = hasCCT(bc.type); if (bc.doubleBuffer) { - _data = (uint8_t*)d_calloc(_len, Bus::getNumberOfChannels(_type)); + _data = (uint8_t*)calloc(_len, Bus::getNumberOfChannels(_type)); if (!_data) DEBUG_PRINTLN(F("Bus: Buffer allocation failed!")); } uint16_t lenToCreate = bc.count; @@ -744,7 +744,7 @@ BusNetwork::BusNetwork(const BusConfig &bc) _hasCCT = false; _UDPchannels = _hasWhite + 3; _client = IPAddress(bc.pins[0],bc.pins[1],bc.pins[2],bc.pins[3]); - _data = (uint8_t*)d_calloc(_len, _UDPchannels); + _data = (uint8_t*)calloc(_len, _UDPchannels); _valid = (_data != nullptr); DEBUG_PRINTF_P(PSTR("%successfully inited virtual strip with type %u and IP %u.%u.%u.%u\n"), _valid?"S":"Uns", bc.type, bc.pins[0], bc.pins[1], bc.pins[2], bc.pins[3]); }