Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
e28c679f
Commit
e28c679f
authored
Apr 01, 2020
by
Marcus Nordenberg
Committed by
Esteban Blanc
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt_plc_thread: use enum for delay action
(cherry picked from commit 4e173a8e4f24eb8305b6a52f83005d62ddc770e5)
parent
8ec7aac3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/lib/rt/src/rt_plc_thread.c
src/lib/rt/src/rt_plc_thread.c
+5
-4
No files found.
src/lib/rt/src/rt_plc_thread.c
View file @
e28c679f
...
...
@@ -732,10 +732,11 @@ static void scan(plc_sThread* tp)
if
(
tp
->
csup_lh
!=
NULL
)
{
pwr_tTime
now
;
time_GetTime
(
&
now
);
delay_action
=
csup_Exec
(
&
sts
,
tp
->
csup_lh
,
(
pwr_tDeltaTime
*
)
&
tp
->
sync_time
,
(
pwr_tDeltaTime
*
)
&
tp
->
after_scan
,
&
now
);
if
(
delay_action
==
2
)
{
delay_action
=
csup_Exec
(
&
sts
,
tp
->
csup_lh
,
(
pwr_tDeltaTime
*
)
&
tp
->
sync_time
,
(
pwr_tDeltaTime
*
)
&
tp
->
after_scan
,
&
now
);
if
(
delay_action
==
pwr_eSupDelayActionEnum_EmergencyBreak
)
{
int
prev_rwflag
=
pp
->
IOHandler
->
IOReadWriteFlag
;
pp
->
IOHandler
->
IOReadWriteFlag
=
FALSE
;
pp
->
Node
->
EmergBreakTrue
=
TRUE
;
...
...
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