Backup RFP Infinity controller state before Resolume changes
This commit is contained in:
@@ -12154,6 +12154,7 @@ static const char _data_RESERVED[] PROGMEM = "RSVD";
|
||||
// use id==255 to find unallocated gaps (with "Reserved" data string)
|
||||
// if vector size() is smaller than id (single) data is appended at the end (regardless of id)
|
||||
void WS2812FX::addEffect(uint8_t id, mode_ptr mode_fn, const char *mode_name) {
|
||||
if (!rfpEffectIsAllowed(id)) return;
|
||||
if ((id < _mode.size()) && (_modeData[id] != _data_RESERVED)) {
|
||||
DEBUG_PRINTF("addEffect(%d) -> ", id);
|
||||
DEBUG_PRINTF(" already in use, finding a new slot for -> %s\n", mode_name);
|
||||
|
||||
Reference in New Issue
Block a user