From 3177ef544f5ecdfe5810461734fce470249e8129 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 13 Apr 2016 00:01:28 +0100 Subject: esp8266: In callback helpers, pop nlr_buf on successful call. nlr_pop must be called if no exception was raised. Also, return value of these callback helpers is made void because ther is (currently) no use for it. --- esp8266/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'esp8266/utils.h') diff --git a/esp8266/utils.h b/esp8266/utils.h index ceef9720e..c6a4f1f3e 100644 --- a/esp8266/utils.h +++ b/esp8266/utils.h @@ -25,5 +25,5 @@ * THE SOFTWARE. */ -mp_obj_t call_function_1_protected(mp_obj_t fun, mp_obj_t arg); -mp_obj_t call_function_2_protected(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2); +void call_function_1_protected(mp_obj_t fun, mp_obj_t arg); +void call_function_2_protected(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2); -- cgit v1.2.3