Commit 3386513c authored by Tiago Jorge's avatar Tiago Jorge
Browse files

Fix hardcoded EC step function name in Bambu bridge.

parent 7d664534
......@@ -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 = []
......
Supports Markdown
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