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

fix(radio): writing of .luac files can fail on some radios #5716

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

philmoz
Copy link
Collaborator

@philmoz philmoz commented Dec 17, 2024

When generating the compiled .luac file for a script the file write may be done with a large number of very small writes to the SD card. For some reason this is failing on the GX12 with some scripts.

This PR buffers the data being written when a .luac file is generated and writes it in larger blocks to the SD card.
This is a workaround for the GX12 issue; but may also reduce the SD write overhead when creating .luac files.

Note: the underlying issue with the GX12 SD writing should still be investigated and fixed.

Resolves #5702 but does not fix underlying issue.

@philmoz philmoz added the enhancement ✨ New feature or request label Dec 17, 2024
@philmoz philmoz added this to the 2.11 milestone Dec 17, 2024
@3djc
Copy link
Collaborator

3djc commented Dec 17, 2024

I'm all for it, it is definitely an improvement for all radio to 'hammer' less the sdcard, but I need to emphasis it does not solve the yet unidentified root cause of #5702

@pfeerick pfeerick changed the title fix(radio): writing of .luac files can fail on some radios. fix(radio): writing of .luac files can fail on some radios Dec 19, 2024
@pfeerick pfeerick merged commit e4ba477 into main Dec 22, 2024
49 checks passed
@pfeerick pfeerick deleted the philmoz/lua-dumper branch December 22, 2024 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GX12 RF2TLM LUA Script Blows Up UI
3 participants