FailureDetector - Add is_failure() function to simplify the interface; the user does not need to check the bitmask

This commit is contained in:
bresch
2019-06-05 16:53:08 +02:00
committed by Beat Küng
parent d3c9436f84
commit 03ad4ffd47
2 changed files with 4 additions and 3 deletions
@@ -70,7 +70,8 @@ public:
bool update();
uint8_t get_status() const {return _status;}
uint8_t get_status() const { return _status; }
bool is_failure() const { return (_status == FAILURE_NONE) ? false : true; }
private: