From 646b47c80aea160ff1e5c83f757643008e176f64 Mon Sep 17 00:00:00 2001 From: Georgi Filipov Date: Thu, 16 Jan 2025 23:34:44 +0200 Subject: [PATCH] Remove this-> from static members --- esphome/components/samsung/samsung.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/samsung/samsung.cpp b/esphome/components/samsung/samsung.cpp index ace6ec9adb..f2cd1007dc 100644 --- a/esphome/components/samsung/samsung.cpp +++ b/esphome/components/samsung/samsung.cpp @@ -156,13 +156,13 @@ uint8_t SamsungClimate::calc_section_checksum(const uint8_t *section) { } void SamsungClimate::checksum_() { - uint8_t sectionsum = this->calc_section_checksum(protocol_.raw); + uint8_t sectionsum = calc_section_checksum(protocol_.raw); protocol_.sum_1_upper = GETBITS8(sectionsum, K_HIGH_NIBBLE, K_NIBBLE_SIZE); protocol_.sum_1_lower = GETBITS8(sectionsum, K_LOW_NIBBLE, K_NIBBLE_SIZE); - sectionsum = this->calc_section_checksum(protocol_.raw + K_SAMSUNG_AC_SECTION_LENGTH); + sectionsum = calc_section_checksum(protocol_.raw + K_SAMSUNG_AC_SECTION_LENGTH); protocol_.sum_2_upper = GETBITS8(sectionsum, K_HIGH_NIBBLE, K_NIBBLE_SIZE); protocol_.sum_2_lower = GETBITS8(sectionsum, K_LOW_NIBBLE, K_NIBBLE_SIZE); - sectionsum = this->calc_section_checksum(protocol_.raw + K_SAMSUNG_AC_SECTION_LENGTH * 2); + sectionsum = calc_section_checksum(protocol_.raw + K_SAMSUNG_AC_SECTION_LENGTH * 2); protocol_.sum_3_upper = GETBITS8(sectionsum, K_HIGH_NIBBLE, K_NIBBLE_SIZE); protocol_.sum_3_lower = GETBITS8(sectionsum, K_LOW_NIBBLE, K_NIBBLE_SIZE); }