-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
A user-friendlier compilation error for SDMMC_HOST #172
base: master
Are you sure you want to change the base?
Conversation
@@ -18,6 +18,11 @@ limitations under the License. | |||
#pragma once | |||
|
|||
#include "SDCard.h" | |||
|
|||
#ifndef SOC_SDMMC_HOST_SUPPORTED | |||
#error "Your chip does not support SDMCC_HOST. See https://github.com/PerMalmberg/Smooth/issues/171" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps reference some applicable IDF documentation instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea, but I'm not sure how to implement it.
SOC_SDMMC_HOST_SUPPORTED
is described on chip-specific pages, e.g.
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/soc_caps.html
https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-reference/system/soc_caps.html
Correct URL can be computed by inserting CONFIG_IDF_TARGET
into the error message, but I don't know how to do that inside the #error
.
My second commit dropped the |
(nevermind, deleted) |
See #171