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

Fix NO_SD_HOST_DRIVE when shared media is not supported #20176

Merged

Conversation

rhapsodyv
Copy link
Member

Description

NO_SD_HOST_DRIVE has partial support. Only LPC use it to enable/disable shared media. And NO_SD_HOST_DRIVE will disable SD_DETECT_PIN on boards that don't have shared media use onboard SD.

This PR fix NO_SD_HOST_DRIVE in all 32 bit HAL, and add HAS_SD_HOST_DRIVE, so each hal can say when it shared media is supported or not.
HAS_SHARED_MEDIA became redundant with HAS_SD_HOST_DRIVE, so I replaced it.

Benefits

Fix #20157
More MSC standard on all hals.

Related Issues

#20157

…ke NO_SD_HOST_DRIVE work properly in all hals and only when sd host exist
@qwewer0
Copy link
Contributor

qwewer0 commented Nov 17, 2020

With this PR the problem on #20157 with #20151, is now fixed!

@rhapsodyv rhapsodyv marked this pull request as ready for review November 17, 2020 17:34
Copy link
Member

@thinkyhead thinkyhead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sensible and uncomplicated.

@thinkyhead thinkyhead merged commit f1cdd02 into MarlinFirmware:bugfix-2.0.x Nov 18, 2020
FhlostonParadise pushed a commit to FhlostonParadise/Marlin that referenced this pull request Nov 21, 2020
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Kannix2005 pushed a commit to Kannix2005/Marlin-1 that referenced this pull request Dec 7, 2020
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
vgadreau pushed a commit to vgadreau/Marlin that referenced this pull request Dec 9, 2020
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
@rhapsodyv rhapsodyv deleted the fix-no-sd-host-drive branch December 31, 2020 20:39
tharts pushed a commit to tharts/Marlin that referenced this pull request Jan 6, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
dpreed pushed a commit to dpreed/Marlin_2.0.x that referenced this pull request Feb 5, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
kpishere pushed a commit to kpishere/Marlin that referenced this pull request Feb 19, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
W4tel-BiDi pushed a commit to W4tel-BiDi/Marlin that referenced this pull request Apr 5, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
chrisjenda pushed a commit to chrisjenda/Marlin that referenced this pull request Apr 5, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
chrisjenda pushed a commit to chrisjenda/Marlin that referenced this pull request Apr 7, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
thinkyhead added a commit to thinkyhead/Marlin that referenced this pull request Apr 28, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
thinkyhead added a commit to thinkyhead/Marlin that referenced this pull request Apr 29, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
thinkyhead added a commit that referenced this pull request Apr 30, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
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.

[BUG] NO_SD_HOST_DRIVE on non _USB environments
3 participants