Browse Source

relay: pulse timer is transferable as basic timer

test/dev
Maxim Prokhorov 1 month ago
parent
commit
3a8992704d
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      code/espurna/relay.cpp

+ 5
- 4
code/espurna/relay.cpp View File

@ -453,8 +453,12 @@ struct Timer {
using Duration = timer::SystemTimer::Duration;
Timer() = delete;
Timer(const Timer&) = delete;
Timer(Timer&&) = delete;
Timer& operator=(const Timer&) = delete;
Timer(Timer&&) = default;
Timer& operator=(Timer&&) = default;
Timer(Duration duration, size_t id, bool status) :
_duration(duration),
@ -466,9 +470,6 @@ struct Timer {
_timer.stop();
}
Timer& operator=(const Timer&) = delete;
Timer& operator=(Timer&&) = delete;
explicit operator bool() const {
return static_cast<bool>(_timer);
}


Loading…
Cancel
Save