Skip to content

Commit

Permalink
Reset status when run is aborted
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan committed Oct 28, 2020
1 parent 91d41a6 commit e29d52f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Logical/mappLogbook/Logbook/Main.st
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e29d52f

Please sign in to comment.