Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
3386513c
Commit
3386513c
authored
Feb 24, 2019
by
Tiago Jorge
Browse files
Fix hardcoded EC step function name in Bambu bridge.
parent
7d664534
Changes
1
Hide whitespace changes
Inline
Side-by-side
dmt/B_mappers/simulink_B_mapper.py
View file @
3386513c
...
...
@@ -683,14 +683,14 @@ def EmitBambuBridge(sp: ApLevelContainer, subProgramImplementation: str):
stepStr
=
"""
#ifndef rtmGetStopRequested
do_something
_step();
%s
_step();
#else
if (!rtmGetStopRequested(
do_something
_M)) {
do_something
_step();
if (rtmGetStopRequested(
do_something_M)) { do_something
_terminate(); }
if (!rtmGetStopRequested(
%s
_M)) {
%s
_step();
if (rtmGetStopRequested(
%s_M)) { %s
_terminate(); }
}
#endif
"""
"""
%
(
sp
.
_id
,
sp
.
_id
,
sp
.
_id
,
sp
.
_id
,
sp
.
_id
)
bambuFile
.
write
(
stepStr
)
lines
=
[]
...
...
Write
Preview
Supports
Markdown
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