Skip to content

allow multiple deices on SPI bus #35

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

Closed
dariosalvi78 opened this issue Sep 19, 2017 · 1 comment
Closed

allow multiple deices on SPI bus #35

dariosalvi78 opened this issue Sep 19, 2017 · 1 comment

Comments

@dariosalvi78
Copy link
Contributor

PROBLEM:
with 2 devices on the SPI bus, the SD card library fails when calling the begin() function
the problem is that the library is not prepared to work with other SPI devices, it assumes you only have the SD card basically

SOLUTION:
in the file named SD.cpp, in function begin() (line 345) add this instruction before the return statement:

if(root.isOpen()) root.close();

that should do it.

@sandeepmistry
Copy link
Contributor

Hi @dariosalvi78, could you please submit a pull request for this suggestion.

dariosalvi78 added a commit to dariosalvi78/SD that referenced this issue Oct 3, 2017
@cmaglie cmaglie closed this as completed in cac36d3 Nov 9, 2017
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

No branches or pull requests

2 participants