|
|
@ -25,7 +25,7 @@ USBCompositeSerial MarlinCompositeSerial; |
|
|
|
|
|
|
|
#include "../../inc/MarlinConfig.h" |
|
|
|
|
|
|
|
#ifdef HAS_ONBOARD_SD |
|
|
|
#if SD_CONNECTION_IS(ONBOARD) |
|
|
|
|
|
|
|
#include "onboard_sd.h" |
|
|
|
|
|
|
@ -47,7 +47,7 @@ void MSC_SD_init() { |
|
|
|
USBComposite.end(); |
|
|
|
USBComposite.clear(); |
|
|
|
// Set api and register mass storage
|
|
|
|
#ifdef HAS_ONBOARD_SD |
|
|
|
#if SD_CONNECTION_IS(ONBOARD) |
|
|
|
uint32_t cardSize; |
|
|
|
if (disk_initialize(0) == RES_OK) { |
|
|
|
if (disk_ioctl(0, GET_SECTOR_COUNT, (void *)(&cardSize)) == RES_OK) { |
|
|
|