Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change file allocation in serialcmds to dynamic, Refractor js engine #742

Merged
merged 8 commits into from
Jan 29, 2025

Conversation

Tawank
Copy link
Contributor

@Tawank Tawank commented Jan 28, 2025

Proposed Changes

  • Changed file allocation in serialcmds to dynamic
  • Changed the limit of uploaded files in storage write and js run_from_buffer from 4kb to PSRAM limit
  • Added destructor (finalizer) to gif object, so it could be removed propely by js garbage collector
  • Fixed wifiScan() and wifiConnect() functions in js interpreter
  • Changed js heap allocation to PSRAM

Types of Changes

Bugfix, New Feature

Verification

You can test it by using storage write and js run_from_buffer serialcmds.
Use wifiScan() function in js script

Linked Issues

User-Facing Change

- Fixed `wifiScan()` and `wifiConnect()` functions in js interpreter
- Fixed issues with ram in js interpreter

Further Comments

I futher refractored js engine so it will take less ram, it fixed problems with wifi and bluetooth.

@pr3y pr3y merged commit 27d0497 into pr3y:main Jan 29, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants