Skip to content

Conversation

asiemsen
Copy link
Contributor

@asiemsen asiemsen commented Aug 6, 2025

Summary

Created sdCardManager class to initialize and mount sd card. The logger takes in the sd card to ensure that it is mounted and writes all logs into the sd card at /sd/logs/activity.log.

Added logic to write to the sd card inside of the _log function of the Logger.

How was this tested

  • No tests

Copy link
Member

@nateinaction nateinaction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good, suggested moving some code to pysquared.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's bring this into the pysquared repo. How about we create a new module inside of pysquared called boot and we can add this as a callable function from that module. It looks like the function might take 3 arguments: mount_points, wait_time, and attempts. Once it's in pysquared, we can write tests and reuse this in the other board repos.

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