Browse Source

Fix SPI on SMART RAMPS with mega2560 (#21128)

kpishere 3 years ago
parent
commit
fb8b421aac
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/src/lcd/dogm/marlinui_DOGM.h

+ 2
- 1
Marlin/src/lcd/dogm/marlinui_DOGM.h View File

@@ -88,7 +88,8 @@
88 88
 
89 89
   #define SMART_RAMPS MB(RAMPS_SMART_EFB, RAMPS_SMART_EEB, RAMPS_SMART_EFF, RAMPS_SMART_EEF, RAMPS_SMART_SF)
90 90
   #define U8G_CLASS U8GLIB_64128N_2X_HAL                        // 4 stripes (HW-SPI)
91
-  #if SMART_RAMPS || DOGLCD_SCK != SD_SCK_PIN || DOGLCD_MOSI != SD_MOSI_PIN
91
+
92
+  #if (SMART_RAMPS && defined(__SAM3X8E__)) || DOGLCD_SCK != SD_SCK_PIN || DOGLCD_MOSI != SD_MOSI_PIN
92 93
     #define FORCE_SOFT_SPI                                      // SW-SPI
93 94
   #endif
94 95
 

Loading…
Cancel
Save