2
0
mirror of https://github.com/m-labs/artiq.git synced 2025-01-07 17:43:34 +08:00

kernel core: pass return value

This commit is contained in:
occheung 2024-11-18 15:15:01 +08:00 committed by Sébastien Bourdeauducq
parent 5f9ddf1ef4
commit b84017e7ea
2 changed files with 10 additions and 1 deletions

View File

@ -689,7 +689,12 @@ class CommKernel:
if service_id == 0:
def service(*values):
counter = 0
if embedding_map.expects_return:
embedding_map.return_value = values[0]
counter = 1
else:
counter = 0
for obj in embedding_map.attributes_writeback:
old_val = obj["obj"]
if "fields" in obj:

View File

@ -123,6 +123,10 @@ class Core:
self._run_compiled(kernel_library, embedding_map)
# set by NAC3
if embedding_map.expects_return:
return embedding_map.return_value
def _run_compiled(self, kernel_library, embedding_map):
if self.first_run:
self.comm.check_system_info()