From d3a663967b1185f6a68e7bf442cc88e420c97abe Mon Sep 17 00:00:00 2001 From: Paul Wieland
Date: Thu, 1 Aug 2024 12:26:41 -0400 Subject: [PATCH] Update ratgdo_number.cpp --- components/ratgdo/number/ratgdo_number.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/ratgdo/number/ratgdo_number.cpp b/components/ratgdo/number/ratgdo_number.cpp index 321dc6a..31fb63d 100644 --- a/components/ratgdo/number/ratgdo_number.cpp +++ b/components/ratgdo/number/ratgdo_number.cpp @@ -60,9 +60,8 @@ namespace ratgdo { this->update_state(value); }); - std::string mname = "rolling_code_counter2"; // A second subscription, which seem to overwrite the first subscription - this->parent_->subscribe_rolling_code_counter([=](uint32_t value, std::string mname) { + this->parent_->subscribe_rolling_code_counter([=](uint32_t value, const std::string &name = "rolling_code_counter2") { ESP_LOGD("XXX","A second rolling code counter subscription"); });