Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 12117

Re: SD Card Menu on CR-10S

$
0
0
Although the above did add the ability to change the SD without powering down the controller, thanks to another forum that mentioned this in 1.1.7 I think this is the root cause and it turns out to be coding error also in 1.1.8.

I set #define SD_DETECT_PIN back to 49 in pins_RAMPS.h and made this change in ultralcd.cpp:

# cat ultralcd.cpp-diff
1000c1000
< #if !PIN_EXISTS(SD_DETECT)
---
> #if PIN_EXISTS(SD_DETECT)
1007c1007
< #if !PIN_EXISTS(SD_DETECT)
---
> #if PIN_EXISTS(SD_DETECT)

Changed !PIN_EXISTS(SD_DETECT) to PIN_EXISTS(SD_DETECT) on lines 1000 and 1007. This is for Marlin 1.1.8 and will most likely be different for other versions of Marlin.

These are the two things that changed and you can see they're for changing and initing the SD card. Tested it and am using it in 1.1.8.
          //#if !PIN_EXISTS(SD_DETECT)
          #if PIN_EXISTS(SD_DETECT)
            MENU_ITEM(gcode, MSG_CNG_SDCARD, PSTR("M21"));  // SD-card changed by user
          #endif

        //#if !PIN_EXISTS(SD_DETECT)
        #if PIN_EXISTS(SD_DETECT)
          MENU_ITEM(gcode, MSG_INIT_SDCARD, PSTR("M21")); // Manually initialize the SD-card via user interface
        #endif

Viewing all articles
Browse latest Browse all 12117

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>