From 9d9030a39c747da92adc2e0a9847a63e7bb8eaa6 Mon Sep 17 00:00:00 2001
From: Ryan <allted@gmail.com>
Date: Thu, 30 May 2019 17:58:38 -0700
Subject: [PATCH] Fix Archim1 SD card (#14184)

---
 Marlin/src/HAL/HAL_DUE/spi_pins.h | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/Marlin/src/HAL/HAL_DUE/spi_pins.h b/Marlin/src/HAL/HAL_DUE/spi_pins.h
index c805b0c1ea..58916c91ee 100644
--- a/Marlin/src/HAL/HAL_DUE/spi_pins.h
+++ b/Marlin/src/HAL/HAL_DUE/spi_pins.h
@@ -26,19 +26,22 @@
  *
  * Available chip select pins for HW SPI are 4 10 52 77
  */
-#if (SDSS == 4) || (SDSS == 10) || (SDSS == 52) || (SDSS == 77)
-  #if (SDSS == 4)
+#if SDSS == 4 || SDSS == 10 || SDSS == 52 || SDSS == 77 || SDSS == 87
+  #if SDSS == 4
     #define SPI_PIN         87
     #define SPI_CHAN         1
-  #elif (SDSS == 10)
+  #elif SDSS == 10
     #define SPI_PIN         77
     #define SPI_CHAN         0
-  #elif (SDSS == 52)
+  #elif SDSS == 52
     #define SPI_PIN         86
     #define SPI_CHAN         2
-  #else
+  #elif SDSS == 77
     #define SPI_PIN         77
     #define SPI_CHAN         0
+  #else
+    #define SPI_PIN         87
+    #define SPI_CHAN         1  
   #endif
   #define SCK_PIN           76
   #define MISO_PIN          74
-- 
GitLab