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

Allow hotplugging of SD cards #91

Open
jsalsburg opened this issue Sep 15, 2020 · 1 comment
Open

Allow hotplugging of SD cards #91

jsalsburg opened this issue Sep 15, 2020 · 1 comment

Comments

@jsalsburg
Copy link

Ordered two LILYGO® TTGO LoRa32 V2.1_1.6. They would message each other just fine. Formatted and inserted a 16 Gig SD card for each. The Web Page/192.168.4.1 would not mount. I tried everything short of re-flashing. After pushing the RESET Button on each, they worked as expected, did not have to push RESET Button again for them to message.

@paidforby
Copy link
Contributor

Hey @jsalsburg yes you definitely need to reboot the TTGO board after inserting the SD card. Ideally, I would insert the SD card with the power off and then power it up with the card inserted. There is probably a way to hot-plug the SD card, I'm guessing it would be as easy as checking if you are able to run sd_card.begin(SD_SCK, SD_MISO, SD_MOSI, -1); everytime through the loop, currently this is done once at startup, in setupSD. Not sure if there would be any drawbacks to do this everytime in the loop, but I guess you could also do it at certain intervals.

Thanks for pointing this out, I'm going to rename this "allow hotplug of SD card" and tag it as an enhancement, since it's not totally necessary for operation.

@paidforby paidforby changed the title Required Reset button Allow hotplugging of SD cards Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants