mirror of
https://github.com/esphome/esphome.git
synced 2024-12-27 07:51:43 +01:00
static const
This commit is contained in:
parent
8559fdfd4c
commit
f2067538c2
2 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,8 @@ namespace time_based_tilt {
|
|||
|
||||
static const char *const TAG = "time_based_tilt.cover";
|
||||
|
||||
const float TimeBasedTiltCover::TARGET_NONE = -1;
|
||||
|
||||
using namespace esphome::cover;
|
||||
|
||||
void TimeBasedTiltCover::dump_config() {
|
||||
|
|
|
@ -50,7 +50,7 @@ class TimeBasedTiltCover : public cover::Cover, public Component {
|
|||
uint32_t inertia_open_time_;
|
||||
uint32_t inertia_close_time_;
|
||||
|
||||
const float TARGET_NONE{-1};
|
||||
const static float TARGET_NONE;
|
||||
enum State : uint8_t {
|
||||
STATE_IDLE,
|
||||
STATE_MOVING,
|
||||
|
|
Loading…
Reference in a new issue