mirror of
https://github.com/esphome/esphome.git
synced 2025-04-18 08:40:29 +01:00
Co-authored-by: descipher <mike.laspina@gelidus.ca> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
21 lines
551 B
C++
21 lines
551 B
C++
#include "atm90e32_button.h"
|
|
#include "esphome/core/log.h"
|
|
|
|
namespace esphome {
|
|
namespace atm90e32 {
|
|
|
|
static const char *const TAG = "atm90e32.button";
|
|
|
|
void ATM90E32CalibrationButton::press_action() {
|
|
ESP_LOGI(TAG, "Running offset calibrations, Note: CTs and ACVs must be 0 during this process...");
|
|
this->parent_->run_offset_calibrations();
|
|
}
|
|
|
|
void ATM90E32ClearCalibrationButton::press_action() {
|
|
ESP_LOGI(TAG, "Offset calibrations cleared.");
|
|
this->parent_->clear_offset_calibrations();
|
|
}
|
|
|
|
} // namespace atm90e32
|
|
} // namespace esphome
|