From 4e109c6af6f4719e601b5a1feb9e6c8f53386e69 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 29 May 2024 13:55:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20MINITRONICS=20build=20(usi?= =?UTF-8?q?ng=20env:mega1281)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Minitronics board uses a 1281 (with less pins), not a 1280. The environment for it seems to be missing. Add it. --- Marlin/src/pins/pins.h | 2 +- ini/avr.ini | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Marlin/src/pins/pins.h b/Marlin/src/pins/pins.h index e9f6f4af9b55..9d246cc9a3f7 100644 --- a/Marlin/src/pins/pins.h +++ b/Marlin/src/pins/pins.h @@ -297,7 +297,7 @@ // #elif MB(MINITRONICS) - #include "mega/pins_MINITRONICS.h" // ATmega1281 env:mega1280 + #include "mega/pins_MINITRONICS.h" // ATmega1281 env:mega1281 #elif MB(SILVER_GATE) #include "mega/pins_SILVER_GATE.h" // ATmega2561 env:mega2560 diff --git a/ini/avr.ini b/ini/avr.ini index f2f0658d842f..1d0d2c391b2d 100644 --- a/ini/avr.ini +++ b/ini/avr.ini @@ -63,6 +63,13 @@ build_flags = ${common_avr8.build_flags} -fno-tree-scev-cprop -fno-split extends = mega_extended_optimized board = megaatmega1280 +# +# ATmega1281 +# +[env:mega1281] +extends = common_avr8 +board = ATmega1281 + # # MightyBoard ATmega2560 #