From da71668e732f244406c9d78aef876df583595846 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Tue, 13 Aug 2024 17:16:50 +0200 Subject: [PATCH] rollback --- esphome/components/partition/light_partition.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/partition/light_partition.h b/esphome/components/partition/light_partition.h index 55ad0ca9dc..bd90b4c4f1 100644 --- a/esphome/components/partition/light_partition.h +++ b/esphome/components/partition/light_partition.h @@ -79,7 +79,7 @@ class PartitionLightOutput : public light::AddressableLight { int32_t seg_off = index - seg.get_dst_offset(); // offset within the src int32_t src_off; - if (seg.is_reversed()) { // NOLINT(bugprone-branch-clone) + if (seg.is_reversed()) { src_off = seg.get_src_offset() + seg.get_size() - seg_off - 1; } else { src_off = seg.get_src_offset() + seg_off;