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

Implement SD Card message cache #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Implement SD Card message cache #2

wants to merge 1 commit into from

Conversation

Exortions
Copy link
Collaborator

@Exortions Exortions commented Dec 28, 2024

The SD Card cache allows messages to be stored in a vector, instead of being written to the sd card everytime a message is sent. There is a customizable cacheSize variable, passed into the ctor which the user can change on creation. Once the cache reaches this size, the entire cache is dumped into the sd card.

Instead of a max size to the cache, maybe there should be a function that manually writes to the card.

Having a cache I believe is the optimal way to write to the SD Card, as repeated writes to it will cause it to disrupt other operations on user code.

Download the template for this pull request:

Note

This is auto generated from Add Template to Pull Request

curl -o [email protected]+642e24.zip https://nightly.link/LemLib/LemLog/actions/artifacts/2368320107.zip;
pros c fetch [email protected]+642e24.zip;
pros c apply [email protected]+642e24;
rm [email protected]+642e24.zip;

@Exortions Exortions added the enhancement New feature or request label Dec 28, 2024
@Exortions Exortions requested a review from SizzinSeal December 28, 2024 21:22
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.

1 participant