Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose complete active error list #202

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.14)

project(everest-framework
VERSION 0.16.0
VERSION 0.17.0
DESCRIPTION "The open operating system for e-mobility charging stations"
LANGUAGES CXX C
)
Expand Down
6 changes: 3 additions & 3 deletions include/utils/error/error_state_monitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ class ErrorStateMonitor {
bool is_error_active(const ErrorType& type, const ErrorSubType& sub_type) const;

///
/// \brief get_active_error_count returns the amount of active errors for this error state monitor
/// \return Amount of active errors
/// \brief get_active_errors returns the list of active errors for this error state monitor
/// \return List of active errors
///
int get_ative_error_count() const;
std::list<ErrorPtr> get_active_errors() const;

///
/// \brief is_condition_satisfied checks if a certain condition is satisfied
Expand Down
4 changes: 2 additions & 2 deletions lib/error/error_state_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ bool ErrorStateMonitor::is_error_active(const ErrorType& type, const ErrorSubTyp
return database->get_errors(filters).size() > 0;
}

int ErrorStateMonitor::get_ative_error_count() const {
return database->get_errors({}).size();
std::list<ErrorPtr> ErrorStateMonitor::get_active_errors() const {
return database->get_errors({});
}

bool ErrorStateMonitor::is_condition_satisfied(const StateCondition& condition) const {
Expand Down
Loading