Updated constructor, switched cs pin and spi speed parameters for begin

This commit is contained in:
Th3maz1ng 2019-10-05 17:17:23 +02:00
parent 500a441248
commit 34a847a012
2 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ boolean callback_rmdir(SdFile& parentDir, char *filePathComponent,
boolean SDClass::begin(uint32_t speed, uint8_t csPin) {
boolean SDClass::begin(uint8_t csPin, uint32_t speed) {
/*
Performs the initialisation required by the sdfatlib library.

View File

@ -90,7 +90,7 @@ private:
public:
// This needs to be called to set up the connection to the SD card
// before other methods are used.
boolean begin( uint32_t speed = SPI_HALF_SPEED, uint8_t csPin = SD_CHIP_SELECT_PIN);
boolean begin(uint8_t csPin = SD_CHIP_SELECT_PIN, uint32_t speed = SPI_HALF_SPEED);
/*
In the following sequence: