forked from M-Labs/artiq
kernel core: pass return value
This commit is contained in:
parent
5f9ddf1ef4
commit
b84017e7ea
@ -689,7 +689,12 @@ class CommKernel:
|
|||||||
|
|
||||||
if service_id == 0:
|
if service_id == 0:
|
||||||
def service(*values):
|
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:
|
for obj in embedding_map.attributes_writeback:
|
||||||
old_val = obj["obj"]
|
old_val = obj["obj"]
|
||||||
if "fields" in obj:
|
if "fields" in obj:
|
||||||
|
@ -123,6 +123,10 @@ class Core:
|
|||||||
|
|
||||||
self._run_compiled(kernel_library, embedding_map)
|
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):
|
def _run_compiled(self, kernel_library, embedding_map):
|
||||||
if self.first_run:
|
if self.first_run:
|
||||||
self.comm.check_system_info()
|
self.comm.check_system_info()
|
||||||
|
Loading…
Reference in New Issue
Block a user