diff --git a/src/VictronMppt.cpp b/src/VictronMppt.cpp index bc0122d40..4e084974c 100644 --- a/src/VictronMppt.cpp +++ b/src/VictronMppt.cpp @@ -75,12 +75,16 @@ void VictronMpptClass::loop() } } +/* + * isDataValid() + * return: true = if at least one of the MPPT controllers delivers valid data + */ bool VictronMpptClass::isDataValid() const { std::lock_guard lock(_mutex); for (auto const& upController: _controllers) { - if (!upController->isDataValid()) { return false; } + if (upController->isDataValid()) { return true; } } return !_controllers.empty();