Skip to content

[BUG] ( LCD SD-card 'Insert' Not Detected For MKS_SGEN_L Board ) #16223

@borland1

Description

@borland1

Bug Description

When inserting SD-card in SD-card slot of LCD display module, SD-card is not detected, so display's menu does not update with file list/directory.

Steps to Reproduce

With Controller Board MKS_SGEN_L selected,
when enabling LCD's SD-card in Configuration_adv.h file,
line 1153...
#if HAS_SDCARD_CONNECTION
with..
#define SDCARD_CONNECTION LCD

Above configuration properly disables the ONBOARD SD-card and enables the LCD SD-card because both slots use same SD-DETECT_PIN ( P0.27 ).

Suggested Fix.
In file: pins_MKS_SGEN_L.h, line 269...
#if SD_CONNECTION_IS(LCD),
add...
#define SD_DETECT_PIN P0_27

Additional Information

Pin mapping of SD_DETECT_PIN is only defined for SD_CONNECTION_IS( ONBOARD ).

ConfigurationFiles.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions