mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
rename get_toggle_fetch -> is_fetch
This commit is contained in:
@@ -352,7 +352,7 @@ void EMSdevice::toggle_fetch(uint16_t telegram_id, bool toggle) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get status of automatic fetch for a telegram id
|
// get status of automatic fetch for a telegram id
|
||||||
bool EMSdevice::get_toggle_fetch(uint16_t telegram_id) {
|
bool EMSdevice::is_fetch(uint16_t telegram_id) {
|
||||||
for (auto & tf : telegram_functions_) {
|
for (auto & tf : telegram_functions_) {
|
||||||
if (tf.telegram_type_id_ == telegram_id) {
|
if (tf.telegram_type_id_ == telegram_id) {
|
||||||
return tf.fetch_;
|
return tf.fetch_;
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ class EMSdevice {
|
|||||||
|
|
||||||
void fetch_values();
|
void fetch_values();
|
||||||
void toggle_fetch(uint16_t telegram_id, bool toggle);
|
void toggle_fetch(uint16_t telegram_id, bool toggle);
|
||||||
bool get_toggle_fetch(uint16_t telegram_id);
|
bool is_fetch(uint16_t telegram_id);
|
||||||
|
|
||||||
bool ha_config_done() const {
|
bool ha_config_done() const {
|
||||||
return ha_config_done_;
|
return ha_config_done_;
|
||||||
|
|||||||
Reference in New Issue
Block a user