From 7a43e1bc67ef960228e207e299d1bc142bb34161 Mon Sep 17 00:00:00 2001 From: meggert Date: Fri, 15 Mar 2024 14:54:16 +0100 Subject: [PATCH] better but still not fixed --- linux/acs/GpsHyperionLinuxController.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/linux/acs/GpsHyperionLinuxController.cpp b/linux/acs/GpsHyperionLinuxController.cpp index a9381ce4..8031ba46 100644 --- a/linux/acs/GpsHyperionLinuxController.cpp +++ b/linux/acs/GpsHyperionLinuxController.cpp @@ -256,23 +256,17 @@ ReturnValue_t GpsHyperionLinuxController::handleCoreTelemetry(bool modeIsSet) { if (newFix == GpsHyperion::FixMode::NOT_SEEN or newFix == GpsHyperion::FixMode::NO_FIX) { if (maxTimeToReachFix.hasTimedOut()) { // We are supposed to be on and functioning, but no fix was found - // ToDo:: maybe pull reset pins here + // Set HK entries invalid + PoolReadGuard pg(&gpsSet); + gpsSet.setValidity(false, true); if (resetCallback != nullptr) { - PoolReadGuard pg(&gpsSet); - // Set HK entries invalid - gpsSet.setValidity(false, true); ReturnValue_t result = resetCallback(0, 1, resetCallbackArgs); if (result != returnvalue::OK) { - return result; + // ToDo: Trigger Event } - } - if (resetCallback != nullptr) { - PoolReadGuard pg(&gpsSet); - // Set HK entries invalid - gpsSet.setValidity(false, true); - ReturnValue_t result = resetCallback(1, 1, resetCallbackArgs); + result = resetCallback(1, 1, resetCallbackArgs); if (result != returnvalue::OK) { - return result; + // ToDo: Trigger Event } } }