From e29d52fac6200c509fa3081cb00e5e58a326d4e4 Mon Sep 17 00:00:00 2001 From: Stephan Date: Wed, 28 Oct 2020 20:01:20 +0100 Subject: [PATCH] Reset status when run is aborted --- Logical/mappLogbook/Logbook/Main.st | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Logical/mappLogbook/Logbook/Main.st b/Logical/mappLogbook/Logbook/Main.st index 3fb2b68..4ca7a20 100644 --- a/Logical/mappLogbook/Logbook/Main.st +++ b/Logical/mappLogbook/Logbook/Main.st @@ -17,6 +17,7 @@ PROGRAM _CYCLIC // Abort current update run IF EDGENEG(gLogbook.CMD.Refresh) THEN IF state <> enumError THEN + gLogbook.Status := ERR_OK; state := enumWait; END_IF END_IF @@ -102,7 +103,7 @@ PROGRAM _CYCLIC IF ArEventLogGetLatestRecordID_0.Done AND ArEventLogGetLatestRecordID_0.StatusID = ERR_OK THEN Facility.RecordID[Facility.CntFacility] := ArEventLogGetLatestRecordID_0.RecordID; state := enumDetails1; - // Error + // Error ELSIF ArEventLogGetLatestRecordID_0.Error THEN gLogbook.ERR.State := state; gLogbook.Status := ArEventLogGetLatestRecordID_0.StatusID;