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
fca71a72
Commit
fca71a72
authored
Sep 12, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RunTimeCounter, changed time_Dadd() t time_Dadd_NE
parent
5481deaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bcomp/lib/rt/src/rt_plc_bcomp.c
bcomp/lib/rt/src/rt_plc_bcomp.c
+4
-4
No files found.
bcomp/lib/rt/src/rt_plc_bcomp.c
View file @
fca71a72
...
...
@@ -104,8 +104,8 @@ void RunTimeCounterFo_exec( plc_sThread *tp,
co
->
TripReset
=
0
;
}
/* Update Calendar time */
time_Dadd
(
&
co
->
TotalTime
,
&
co
->
TotalTime
,
&
TimeSince
);
time_Dadd
(
&
co
->
TripTime
,
&
co
->
TripTime
,
&
TimeSince
);
time_Dadd
_NE
(
&
co
->
TotalTime
,
&
co
->
TotalTime
,
&
TimeSince
);
time_Dadd
_NE
(
&
co
->
TripTime
,
&
co
->
TripTime
,
&
TimeSince
);
/* Test if running */
o
->
Start
=
0
;
...
...
@@ -118,8 +118,8 @@ void RunTimeCounterFo_exec( plc_sThread *tp,
time_GetTime
(
&
co
->
StartTime
);
}
/* End if new start */
/* Update Running Time */
time_Dadd
(
&
co
->
TripRunTime
,
&
co
->
TripRunTime
,
&
TimeSince
);
time_Dadd
(
&
co
->
TotalRunTime
,
&
co
->
TotalRunTime
,
&
TimeSince
);
time_Dadd
_NE
(
&
co
->
TripRunTime
,
&
co
->
TripRunTime
,
&
TimeSince
);
time_Dadd
_NE
(
&
co
->
TotalRunTime
,
&
co
->
TotalRunTime
,
&
TimeSince
);
}
/* End if Running */
o
->
Running
=
co
->
Running
=
*
o
->
RunningP
;
...
...
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