1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 04:41:26 +04:00

mjs: minor fixes (#3442)

* lib: mjs: removed relocation flags

* js: fixed api example script

* js: private api cleanup

* Updated CODEOWNERS & readme for apps
This commit is contained in:
hedger
2024-02-12 14:16:58 +00:00
committed by GitHub
parent 0154018363
commit c8e62ba5e8
5 changed files with 8 additions and 9 deletions

View File

@@ -1,3 +1,3 @@
let math = load("/ext/apps/Scripts/api.js");
let math = load("/ext/apps/Scripts/load_api.js");
let result = math.add(5, 10);
print(result);

View File

@@ -8,6 +8,4 @@
static constexpr auto app_api_table = sort(create_array_t<sym_entry>(
API_METHOD(js_delay_with_flags, bool, (struct mjs*, uint32_t)),
API_METHOD(js_flags_set, void, (struct mjs*, uint32_t)),
API_METHOD(js_flags_wait, uint32_t, (struct mjs*, uint32_t, uint32_t)),
API_VARIABLE(I_Certification1_103x56, const Icon),
API_VARIABLE(I_Certification2_46x33, const Icon)));
API_METHOD(js_flags_wait, uint32_t, (struct mjs*, uint32_t, uint32_t))));