-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Improve Storage part 2 #2849
base: main
Are you sure you want to change the base?
Improve Storage part 2 #2849
Conversation
could possibly optimize out memcpy, but that is for later.
Further improve file name
Automated fixes for code style.
…580c-196b-48c8-9817-cca5540acfc8 Code style fixes for nanoframework/nf-interpreter PR#2849
Correct char number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no problem with the rename to move away from Windows to Persistent.
Now about the defines for the drives name: that's another story.
These were using Index0...1 etc on purpose as those are the order they show when enumerated by FATFS.
Hard coding this to (for example) USB_DRIVE_LETTER
is assuming that there will be an USB MSD on the system and that it will be at INDEX 1, which may not be the case. There can be an SD Card drive at INDEX 0. Or not...
Any renaming seen necessary here should follow an agnostic naming pattern.
My concept towards inprovements here are this: Personally (as a developer) I (think) I would prefer a (say) 3 letter drive name that relates to the drive (like linux) rather than a 1 letter name that is based on DOS. I note that this needs us to deprecate (rather than remove). But, would add that some of the changes in this PR are helpful and optimize code. Just need split them. |
Automated fixes for code style.
…3d99-1b61-4b86-b7ec-cf78dfdbc883 Code style fixes for nanoframework/nf-interpreter PR#2849
@josesimoes hopefully the changes should go some way towards your comments. Let me know what else. |
Unfortunatly, I missed the fact that |
Can be used as future reference.
Automated fixes for code style.
…1c5c-6115-4d92-994d-6898cbf8f3e1 Code style fixes for nanoframework/nf-interpreter PR#2849
Description
Each change is kept seperate incase of individual merge.
Motivation and Context
Code Maintainability.
How Has This Been Tested?
Screenshots
Types of changes
Checklist