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

MEGA65_FTP: add sdslot command #183

Open
lydon42 opened this issue Dec 3, 2023 · 1 comment
Open

MEGA65_FTP: add sdslot command #183

lydon42 opened this issue Dec 3, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@lydon42
Copy link
Member

lydon42 commented Dec 3, 2023

Add an sdslot command that allows switching of the currently active sdcard slot. Without argument it could also return the currently active slot, or this could be an extra command...

sdslot [0|1] - switches the sd card slot to internal (0) or external(1) slot.
               without argument displays the currently selected slot

Edit:
The command will revert to the last sdslot if the newly selected slot could not be initialized (no sd card, wrong format). In that case it should return an error.

Example (with one card internal):

> sdslot
0
> sdslot 1
error: failed to initialize slot 1
0
> sdslot 0
0

or with two cards:

> sdslot 1
1
> sdslot
1
> sdslot 0
0
@lydon42 lydon42 added the enhancement New feature or request label Dec 3, 2023
@lydon42 lydon42 added this to the far future milestone Dec 3, 2023
@Taygair
Copy link

Taygair commented Dec 3, 2023

Would be a great feature! When/if it comes to implementation a slot switch heading to a not present SD card should return something like "not present". That way the presence of SD cards can be evaluated before accessing them.

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

No branches or pull requests

2 participants