Skip to content

esp32: Fix invalid result of machine.SDCard readblocks(). #16700

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

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

projectgus
Copy link
Contributor

Summary

Small fix for invalid SD readblocks result - function would return NULL instead of mp_const_false if failed to init.

This work was funded through GitHub Sponsors.

Testing

Manually tested, calling readblocks on an invalid SD device would cause an invalid result to Python. Using with Vfs could cause a crash.

@dpgeorge
Copy link
Member

dpgeorge commented Feb 5, 2025

Related: #16223

Functions would return NULL instead of `mp_const_false` if failed to init.

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
@dpgeorge dpgeorge force-pushed the bugfix/esp32_sd_readblocks branch from 76c6e2d to b675c87 Compare February 12, 2025 02:29
@dpgeorge dpgeorge merged commit b675c87 into micropython:master Feb 12, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy