diff options
Diffstat (limited to 'occ_status.cpp')
-rw-r--r-- | occ_status.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/occ_status.cpp b/occ_status.cpp index 36520b5..8867276 100644 --- a/occ_status.cpp +++ b/occ_status.cpp @@ -63,13 +63,17 @@ bool Status::occActive(bool value) } // Callback handler when a device error is reported. -void Status::deviceErrorHandler() +void Status::deviceErrorHandler(bool error) { - // This would deem OCC inactive - this->occActive(false); + // Make sure we have an error + if (error) + { + // This would deem OCC inactive + this->occActive(false); - // Reset the OCC - this->resetOCC(); + // Reset the OCC + this->resetOCC(); + } } // Sends message to host control command handler to reset OCC |