From 8e594d6666fa40b88f6b06016fd06c459719cb1f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 28 Apr 2022 15:37:30 +0800 Subject: [PATCH] language/core: forward kernel return value --- artiq/language/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/language/core.py b/artiq/language/core.py index e1dc7f0ec..cb1908d26 100644 --- a/artiq/language/core.py +++ b/artiq/language/core.py @@ -76,7 +76,7 @@ def kernel(function_or_method): @wraps(function_or_method) def run_on_core(self, *args, **kwargs): fake_method = SimpleNamespace(__self__=self, __name__=function_or_method.__name__) - self.core.run(fake_method, args, kwargs) + return self.core.run(fake_method, args, kwargs) else: @wraps(function_or_method) def run_on_core(*args, **kwargs):