Browse Source

Fix AZSMZ_12864 on SMART RAMPS (#21056)

kpishere 4 years ago
parent
commit
e0ca244623
No account linked to committer's email address
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      Marlin/src/pins/ramps/pins_RAMPS.h

+ 6
- 1
Marlin/src/pins/ramps/pins_RAMPS.h View File

307
    *
307
    *
308
    * Hardware serial communication ports.
308
    * Hardware serial communication ports.
309
    * If undefined software serial is used according to the pins below
309
    * If undefined software serial is used according to the pins below
310
+   *
311
+   * Serial2 -- AUX-4 Pin 18 (D16 TX2) and AUX-4 Pin 17 (D17 RX2)
312
+   * Serial1 -- Pins D18 and D19 are used for Z-MIN and Z-MAX
310
    */
313
    */
311
   //#define X_HARDWARE_SERIAL Serial1
314
   //#define X_HARDWARE_SERIAL Serial1
312
   //#define X2_HARDWARE_SERIAL Serial1
315
   //#define X2_HARDWARE_SERIAL Serial1
690
     #elif ENABLED(AZSMZ_12864)
693
     #elif ENABLED(AZSMZ_12864)
691
 
694
 
692
       // Pins only defined for RAMPS_SMART currently
695
       // Pins only defined for RAMPS_SMART currently
693
-      #error "No pins defined for RAMPS with AZSMZ_12864."
696
+      #if DISABLED(IS_RAMPS_SMART)
697
+        #error "No pins defined for RAMPS with AZSMZ_12864."
698
+      #endif
694
 
699
 
695
     #elif IS_TFTGLCD_PANEL
700
     #elif IS_TFTGLCD_PANEL
696
 
701
 

Loading…
Cancel
Save