Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.modellib.c/model/TimingService.room')
-rw-r--r--runtime/org.eclipse.etrice.modellib.c/model/TimingService.room8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room b/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room
index f71a0a16f..95863bd08 100644
--- a/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room
+++ b/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room
@@ -149,8 +149,8 @@ RoomModel room.basic.service.timing {
"etTimerControlBlock* timer = getTcb();"
"etTime t;"
"if (timer!= 0){"
- "\tt.sec=time/1000;"
- "\tt.nSec=(time%1000)*1000000L;"
+ "\tt.sec=transitionData/1000;"
+ "\tt.nSec=(transitionData%1000)*1000000L;"
"\ttimer->pTime.sec = 0;"
"\ttimer->pTime.nSec = 0;"
"\ttimer->portIdx=((etReplSubPort*)ifitem)->index;"
@@ -168,8 +168,8 @@ RoomModel room.basic.service.timing {
"etTimerControlBlock* timer = getTcb();"
"etTime t;"
"if (timer!= 0){"
- "\tt.sec=time/1000;"
- "\tt.nSec=(time%1000)*1000000L;"
+ "\tt.sec=transitionData/1000;"
+ "\tt.nSec=(transitionData%1000)*1000000L;"
"\ttimer->pTime = t;"
"\ttimer->portIdx=((etReplSubPort*)ifitem)->index;"
"\tgetTimeFromTarget(&(timer->expTime));"

Back to the top