|
|
|
@ -258,7 +258,7 @@ void HAL_init() {
|
|
|
|
|
// HAL idle task
|
|
|
|
|
void HAL_idletask() {
|
|
|
|
|
#ifdef USE_USB_COMPOSITE
|
|
|
|
|
#if ENABLED(SHARED_SD_CARD)
|
|
|
|
|
#if HAS_SHARED_MEDIA
|
|
|
|
|
// If Marlin is using the SD card we need to lock it to prevent access from
|
|
|
|
|
// a PC via USB.
|
|
|
|
|
// Other HALs use IS_SD_PRINTING() and IS_SD_FILE_OPEN() to check for access but
|
|
|
|
@ -266,7 +266,7 @@ void HAL_idletask() {
|
|
|
|
|
// the disk if Marlin has it mounted. Unfortunately there is currently no way
|
|
|
|
|
// to unmount the disk from the LCD menu.
|
|
|
|
|
// if (IS_SD_PRINTING() || IS_SD_FILE_OPEN())
|
|
|
|
|
/* copy from lpc1768 framework, should be fixed later for process SHARED_SD_CARD*/
|
|
|
|
|
/* copy from lpc1768 framework, should be fixed later for process HAS_SHARED_MEDIA*/
|
|
|
|
|
#endif
|
|
|
|
|
// process USB mass storage device class loop
|
|
|
|
|
MarlinMSC.loop();
|
|
|
|
|