From 9fd2bdcab930620e67fce69dc6a9e6e11e9880b4 Mon Sep 17 00:00:00 2001 From: "Edward A. James" Date: Wed, 8 Nov 2017 16:18:57 -0600 Subject: Re-enable OCC error watching Driver and OCC application should now correctly report errors from the OCC with no false positives. Resolves openbmc/openbmc#2285 Change-Id: Ifc4668ab75f26529f071317ead6ab4f77c3a0e7c Signed-off-by: Edward A. James --- occ_manager.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'occ_manager.cpp') diff --git a/occ_manager.cpp b/occ_manager.cpp index 67e96a6..040676b 100644 --- a/occ_manager.cpp +++ b/occ_manager.cpp @@ -82,23 +82,6 @@ void Manager::statusCallBack(bool status) } activeCount += status ? 1 : -1; - - // If all the OCCs are bound, then start error detection - if (activeCount == statusObjects.size()) - { - for (const auto& occ: statusObjects) - { - occ->addErrorWatch(); - } - } - else if (!status) - { - // If some OCCs are not bound yet, those will be a NO-OP - for (const auto& occ: statusObjects) - { - occ->removeErrorWatch(); - } - } } #ifdef I2C_OCC -- cgit v1.2.1