bugfix for #104
this avoids heap corruption, by double-checking that "use global leds" is not configured, before trying to free ledsrgb[]. It is still a mystery why Segment::_globalLeds == nullptr.
This commit is contained in:
@@ -82,7 +82,10 @@ void strip_wait_until_idle(String whoCalledMe) {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// WLEDMM another helper for segment class
|
||||
bool strip_uses_global_leds(void) {
|
||||
return strip.useLedsArray;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Segment class implementation
|
||||
|
||||
Reference in New Issue
Block a user