From d0214c7b272d277fc5f3bded5e0d65adf1a63be1 Mon Sep 17 00:00:00 2001 From: Anna Antonenko Date: Wed, 23 Oct 2024 20:07:03 +0300 Subject: [PATCH] fix: incorrect usage of mjs_own --- applications/system/js_app/modules/js_gpio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/applications/system/js_app/modules/js_gpio.c b/applications/system/js_app/modules/js_gpio.c index 70021968f..d2d65da4d 100644 --- a/applications/system/js_app/modules/js_gpio.c +++ b/applications/system/js_app/modules/js_gpio.c @@ -269,7 +269,6 @@ static void js_gpio_get(struct mjs* mjs) { manager_data->interrupt_semaphore = furi_semaphore_alloc(UINT32_MAX, 0); manager_data->adc_handle = module->adc_handle; manager_data->adc_channel = pin_record->channel; - mjs_own(mjs, &manager); mjs_set(mjs, manager, INST_PROP_NAME, ~0, mjs_mk_foreign(mjs, manager_data)); mjs_set(mjs, manager, "init", ~0, MJS_MK_FN(js_gpio_init)); mjs_set(mjs, manager, "write", ~0, MJS_MK_FN(js_gpio_write));