rename get_toggle_fetch -> is_fetch

This commit is contained in:
proddy
2021-08-14 13:41:11 +02:00
parent f9d768a7a7
commit 1cbd34d94e
2 changed files with 2 additions and 2 deletions

View File

@@ -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_;

View File

@@ -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_;