Commit fca71a72 authored by Claes Sjofors's avatar Claes Sjofors

RunTimeCounter, changed time_Dadd() t time_Dadd_NE

parent 5481deaa
...@@ -104,8 +104,8 @@ void RunTimeCounterFo_exec( plc_sThread *tp, ...@@ -104,8 +104,8 @@ void RunTimeCounterFo_exec( plc_sThread *tp,
co->TripReset = 0; co->TripReset = 0;
} }
/* Update Calendar time */ /* Update Calendar time */
time_Dadd( &co->TotalTime, &co->TotalTime, &TimeSince); time_Dadd_NE( &co->TotalTime, &co->TotalTime, &TimeSince);
time_Dadd( &co->TripTime, &co->TripTime, &TimeSince); time_Dadd_NE( &co->TripTime, &co->TripTime, &TimeSince);
/* Test if running */ /* Test if running */
o->Start = 0; o->Start = 0;
...@@ -118,8 +118,8 @@ void RunTimeCounterFo_exec( plc_sThread *tp, ...@@ -118,8 +118,8 @@ void RunTimeCounterFo_exec( plc_sThread *tp,
time_GetTime( &co->StartTime); time_GetTime( &co->StartTime);
} /* End if new start */ } /* End if new start */
/* Update Running Time */ /* Update Running Time */
time_Dadd( &co->TripRunTime, &co->TripRunTime, &TimeSince); time_Dadd_NE( &co->TripRunTime, &co->TripRunTime, &TimeSince);
time_Dadd( &co->TotalRunTime, &co->TotalRunTime, &TimeSince); time_Dadd_NE( &co->TotalRunTime, &co->TotalRunTime, &TimeSince);
} /* End if Running */ } /* End if Running */
o->Running = co->Running = *o->RunningP; o->Running = co->Running = *o->RunningP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment