fixing some compiler warnings

signed vs. unsigned, deprecated functions, printf parameter size mismatch
This commit is contained in:
Frank
2025-12-17 00:03:18 +01:00
parent f4fd244808
commit 02d23b3316
3 changed files with 5 additions and 5 deletions

View File

@@ -1860,13 +1860,13 @@ void WS2812FX::finalizeInit(void)
// problem: suspendStripService provides interlocking, but theres a window before service() observes it,
// and ESP32 is dual-core. A critical section closes that window so the pointer swap is atomic across cores.
#if defined(ARDUINO_ARCH_ESP32)
taskENTER_CRITICAL(&s_wled_strip_mux);
portENTER_CRITICAL(&s_wled_strip_mux);
#endif
free(Segment::_globalLeds);
Segment::_globalLeds = nullptr;
purgeSegments(true); // WLEDMM moved here, because it seems to improve stability.
#if defined(ARDUINO_ARCH_ESP32)
taskEXIT_CRITICAL(&s_wled_strip_mux);
portEXIT_CRITICAL(&s_wled_strip_mux);
#endif
}
if (useLedsArray && getLengthTotal()>0) { // WLEDMM avoid malloc(0)