Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
49008677
Commit
49008677
authored
Apr 07, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 报警写错了,无法使 记录变为Off
parent
e7841cb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
WarningSystem.cs
...t.FLY.OBJComponents/OBJComponents/Server/WarningSystem.cs
+8
-5
No files found.
Project.FLY.OBJComponents/OBJComponents/Server/WarningSystem.cs
View file @
49008677
...
@@ -155,15 +155,18 @@ namespace FLY.OBJComponents.Server
...
@@ -155,15 +155,18 @@ namespace FLY.OBJComponents.Server
int
error_id
=
reasonList
.
GetID
(
idx
);
int
error_id
=
reasonList
.
GetID
(
idx
);
error
=
reasonList
.
list
[
idx
];
error
=
reasonList
.
list
[
idx
];
FlyData_WarningHistory
reason
=
new
FlyData_WarningHistory
();
reason
.
Time
=
DateTime
.
Now
;
reason
.
ErrCode
=
errcode
;
reason
.
Description
=
error
.
Description
;
error
.
State
=
ERR_STATE
.
OFF
;
error
.
State
=
ERR_STATE
.
OFF
;
reasonList
.
Remove
(
error_id
);
reasonList
.
Remove
(
error_id
);
var
newestList
=
NewestList
as
IBufferAdd
<
FlyData_WarningHistory
>;
var
newestList
=
NewestList
as
IBufferAdd
<
FlyData_WarningHistory
>;
newestList
.
Add
(
reason
);
newestList
.
Add
(
new
FlyData_WarningHistory
{
Time
=
DateTime
.
Now
,
ErrCode
=
errcode
,
Description
=
error
.
Description
,
State
=
ERR_STATE
.
OFF
});
if
(
reasonList
.
Count
>
0
)
if
(
reasonList
.
Count
>
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment