Skip to content

Commit 06a86dd

Browse files
committed
Update funbody.py
1 parent 0fa80f2 commit 06a86dd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

0mq/funbody.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
while(concore2.simtime<concore.maxtime):
4141
#while concore.unchanged():
4242
# u = concore.read(concore.iport['U1'],"u",init_simtime_u)
43-
command_list = []
43+
command_list = paired_transmitter.get_incoming_requests()
4444
while len(command_list)==0:
4545
time.sleep(.01)
4646
command_list = paired_transmitter.get_incoming_requests()
@@ -56,9 +56,10 @@
5656
old2 = concore2.simtime
5757
while concore2.unchanged() or concore2.simtime <= old2:
5858
ym = concore2.read(concore.iport['Y2'],"ym",init_simtime_ym)
59+
ym = [concore2.simtime]+ym
5960
print(f"Replying to {command.action} with {ym}")
6061
paired_transmitter.reply_to_command(
61-
request_id=command.request_id, payload=[concore2.simtime]+ym)
62+
request_id=command.request_id, payload=ym)
6263
else:
6364
print("undefined action"+str(command.action))
6465
quit()

0 commit comments

Comments
 (0)