[light] Return std::string_view from LightEffect::get_name() and LightState::get_effect_name()

This commit is contained in:
J. Nick Koston
2026-01-09 09:11:58 -10:00
parent a693e631bb
commit 999d2d7f7e
@@ -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.data(), universe, output_offset, output_end);
switch (channels_) {
case E131_MONO: