From 4a23069de915996d195f853fc97945f3772c095a Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 1 Apr 2018 18:18:36 -0500 Subject: [PATCH] Fix Ender 4 / CR-8 compilation - Assign 243 (like EFB) as Ender-4/CR-8 board ID - Add to `Makefile` - Add to `pins.h` --- Marlin/src/Makefile | 3 +++ Marlin/src/core/boards.h | 1 + Marlin/src/pins/pins.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Marlin/src/Makefile b/Marlin/src/Makefile index e5a74cbbf..6d40e2ab3 100644 --- a/Marlin/src/Makefile +++ b/Marlin/src/Makefile @@ -148,6 +148,9 @@ MCU ?= atmega2560 else ifeq ($(HARDWARE_MOTHERBOARD),48) HARDWARE_VARIANT ?= arduino MCU ?= atmega2560 +else ifeq ($(HARDWARE_MOTHERBOARD),243) +HARDWARE_VARIANT ?= arduino +MCU ?= atmega2560 #Gen6 else ifeq ($(HARDWARE_MOTHERBOARD),5) diff --git a/Marlin/src/core/boards.h b/Marlin/src/core/boards.h index 9d68569fc..236895642 100644 --- a/Marlin/src/core/boards.h +++ b/Marlin/src/core/boards.h @@ -76,6 +76,7 @@ #define BOARD_BQ_ZUM_MEGA_3D 503 // bq ZUM Mega 3D #define BOARD_MAKEBOARD_MINI 431 // MakeBoard Mini v2.1.2 is a control board sold by MicroMake #define BOARD_TRIGORILLA 343 // TriGorilla Anycubic version 1.3 based on RAMPS EFB +#define BOARD_RAMPS_ENDER_4 243 // Creality: Ender-4, CR-8 // // Other ATmega1280, ATmega2560 diff --git a/Marlin/src/pins/pins.h b/Marlin/src/pins/pins.h index bd8f66c63..ff154d620 100644 --- a/Marlin/src/pins/pins.h +++ b/Marlin/src/pins/pins.h @@ -175,6 +175,8 @@ #include "pins_GT2560_REV_A.h" // ATmega1280, ATmega2560 #elif MB(GT2560_REV_A_PLUS) #include "pins_GT2560_REV_A_PLUS.h" // ATmega1280, ATmega2560 +#elif MB(RAMPS_ENDER_4) + #include "pins_RAMPS_ENDER_4.h" // ATmega2560 // // ATmega1281, ATmega2561