[light] Return StringRef from LightEffect::get_name() and LightState::get_effect_name() (#13105)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2026-01-11 17:52:39 -10:00
1 parent 23f9f70b71
commit f1b11b1855
13 files changed
+97 -36

No files matched your search

@@ -58,8 +58,9 @@ bool E131AddressableLightEffect::process_(int universe, const E131Packet &packet
std::min(it->size(), std::min(output_offset + get_lights_per_universe(), output_offset + packet.count - 1));
auto *input_data = packet.values + 1;
ESP_LOGV(TAG, "Applying data for '%s' on %d universe, for %" PRId32 "-%d.", get_name(), universe, output_offset,
output_end);
auto effect_name = get_name();
ESP_LOGV(TAG, "Applying data for '%.*s' on %d universe, for %" PRId32 "-%d.", (int) effect_name.size(),
effect_name.c_str(), universe, output_offset, output_end);
switch (channels_) {
case E131_MONO: