adafruit / adafruit/Adafruit_CircuitPython_SD

Trouble detecting when card has been removed

Open
#8 1 comment 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
Python
Stars
38
Forks
17
PR merge metrics
No merged PRs in 30d

Description

`readblock()` and `writeblock()` appear to succeed even when the SD card has been removed. It appears that `_wait_for_ready()` is not a good test for detection. I originally added more calls to `_wait_for_ready()` in various places to handle bugs like https://github.com/adafruit/circuitpython/issues/301, but it did not fail as expected.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing readblock() and writeblock(), then inspect how _wait_for_ready() is used to detect card availability. Reproduce removal behavior and determine what reliable failure condition is needed; done means both operations report the removed SD card instead of appearing to succeed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.