It looks like HAS_ONBOARD_SD is obsolete
This commit is contained in:
parent
bc856fd8ec
commit
880f63b008
@ -25,7 +25,7 @@ USBCompositeSerial MarlinCompositeSerial;
|
|||||||
|
|
||||||
#include "../../inc/MarlinConfig.h"
|
#include "../../inc/MarlinConfig.h"
|
||||||
|
|
||||||
#ifdef HAS_ONBOARD_SD
|
#if SD_CONNECTION_IS(ONBOARD)
|
||||||
|
|
||||||
#include "onboard_sd.h"
|
#include "onboard_sd.h"
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ void MSC_SD_init() {
|
|||||||
USBComposite.end();
|
USBComposite.end();
|
||||||
USBComposite.clear();
|
USBComposite.clear();
|
||||||
// Set api and register mass storage
|
// Set api and register mass storage
|
||||||
#ifdef HAS_ONBOARD_SD
|
#if SD_CONNECTION_IS(ONBOARD)
|
||||||
uint32_t cardSize;
|
uint32_t cardSize;
|
||||||
if (disk_initialize(0) == RES_OK) {
|
if (disk_initialize(0) == RES_OK) {
|
||||||
if (disk_ioctl(0, GET_SECTOR_COUNT, (void *)(&cardSize)) == RES_OK) {
|
if (disk_ioctl(0, GET_SECTOR_COUNT, (void *)(&cardSize)) == RES_OK) {
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
|
|
||||||
#include "../../inc/MarlinConfig.h"
|
#include "../../inc/MarlinConfig.h"
|
||||||
|
|
||||||
#ifdef HAS_ONBOARD_SD
|
#if SD_CONNECTION_IS(ONBOARD)
|
||||||
|
|
||||||
#include "onboard_sd.h"
|
#include "onboard_sd.h"
|
||||||
#include "SPI.h"
|
#include "SPI.h"
|
||||||
#include "fastio.h"
|
#include "fastio.h"
|
||||||
|
|
||||||
#ifdef SHARED_SD_CARD
|
#if ENABLED(SHARED_SD_CARD)
|
||||||
#ifndef ON_BOARD_SPI_DEVICE
|
#ifndef ON_BOARD_SPI_DEVICE
|
||||||
#define ON_BOARD_SPI_DEVICE SPI_DEVICE
|
#define ON_BOARD_SPI_DEVICE SPI_DEVICE
|
||||||
#endif
|
#endif
|
||||||
@ -553,4 +553,4 @@ DRESULT disk_read (
|
|||||||
|
|
||||||
#endif // _DISKIO_IOCTL
|
#endif // _DISKIO_IOCTL
|
||||||
|
|
||||||
#endif // HAS_ONBOARD_SD
|
#endif // SD_CONNECTION_IS(ONBOARD)
|
||||||
|
@ -339,7 +339,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DISABLED(SHARED_SD_CARD)
|
#if DISABLED(SHARED_SD_CARD)
|
||||||
#define INIT_SDCARD_ON_BOOT 1
|
#define INIT_SDCARD_ON_BOOT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PIN_EXISTS(SD_DETECT)
|
#if PIN_EXISTS(SD_DETECT)
|
||||||
|
@ -223,8 +223,6 @@
|
|||||||
//
|
//
|
||||||
// SD Support
|
// SD Support
|
||||||
//
|
//
|
||||||
#define HAS_ONBOARD_SD
|
|
||||||
|
|
||||||
#ifndef SDCARD_CONNECTION
|
#ifndef SDCARD_CONNECTION
|
||||||
#define SDCARD_CONNECTION ONBOARD
|
#define SDCARD_CONNECTION ONBOARD
|
||||||
#endif
|
#endif
|
||||||
|
@ -181,8 +181,6 @@
|
|||||||
//
|
//
|
||||||
// SD Support
|
// SD Support
|
||||||
//
|
//
|
||||||
#define HAS_ONBOARD_SD
|
|
||||||
|
|
||||||
#ifndef SDCARD_CONNECTION
|
#ifndef SDCARD_CONNECTION
|
||||||
#define SDCARD_CONNECTION ONBOARD
|
#define SDCARD_CONNECTION ONBOARD
|
||||||
#endif
|
#endif
|
||||||
|
@ -179,8 +179,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// By default the onboard SD is enabled.
|
// By default the onboard SD is enabled.
|
||||||
// set SDCARD_CONNECTION form 'ONBOARD' to 'LCD' and use an external SD (connected to LCD)
|
// Change SDCARD_CONNECTION from 'ONBOARD' to 'LCD' for an external (LCD module) SD
|
||||||
#define HAS_ONBOARD_SD
|
|
||||||
#ifndef SDCARD_CONNECTION
|
#ifndef SDCARD_CONNECTION
|
||||||
#define SDCARD_CONNECTION ONBOARD
|
#define SDCARD_CONNECTION ONBOARD
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user