From 39b545124bf01dd460afbb2a0ea684c73ab49be7 Mon Sep 17 00:00:00 2001 From: mulcmu Date: Thu, 21 Dec 2023 08:32:11 -0500 Subject: [PATCH] remove toggle_learn --- components/ratgdo/ratgdo.cpp | 5 ----- components/ratgdo/ratgdo.h | 1 - 2 files changed, 6 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 4a6f310..056782d 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -759,11 +759,6 @@ namespace ratgdo { set_timeout(500, [=] { this->send_command(Command::GET_STATUS); }); } - void RATGDOComponent::toggle_learn() - { - this->learn_state = learn_state_toggle(*this->learn_state); - } - void RATGDOComponent::subscribe_rolling_code_counter(std::function&& f) { // change update to children is defered until after component loop diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index c793aba..ff8b488 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -174,7 +174,6 @@ namespace ratgdo { void lock(); void unlock(); - void toggle_learn(); void activate_learn(); void inactivate_learn();