Temp fix for leds array crashes: size fixed to 10000pixels/30000bytes

This commit is contained in:
Ewoud
2023-05-17 15:07:42 +02:00
parent 40d120146f
commit ef12aaa60b
2 changed files with 5 additions and 5 deletions

View File

@@ -513,7 +513,7 @@ typedef struct Segment {
Segment& operator= (Segment &&orig) noexcept; // move assignment
#ifdef WLED_DEBUG
size_t getSize() const { return sizeof(Segment) + (data?_dataLen:0) + (name?strlen(name):0) + (_t?sizeof(Transition):0) + (!Segment::_globalLeds && leds?sizeof(CRGB)*length():0); }
size_t getSize() const { return sizeof(Segment) + (data?_dataLen:0) + (name?strlen(name):0) + (_t?sizeof(Transition):0) + (!Segment::_globalLeds && leds?sizeof(CRGB)*10000:0); }
#endif
inline bool getOption(uint8_t n) const { return ((options >> n) & 0x01); }