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:
parent
5f9ddf1ef4
commit
b84017e7ea
@ -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:
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user