Group DISABLED items
This commit is contained in:
parent
58bca67883
commit
b376c7e374
19 changed files with 37 additions and 37 deletions
|
@ -34,7 +34,7 @@
|
||||||
#include "../shared/persistent_store_api.h"
|
#include "../shared/persistent_store_api.h"
|
||||||
#include "../../inc/MarlinConfig.h"
|
#include "../../inc/MarlinConfig.h"
|
||||||
|
|
||||||
#if ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
|
#if ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM, SPI_EEPROM)
|
||||||
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
|
@ -997,5 +997,5 @@ void eeprom_flush(void) {
|
||||||
ee_Flush();
|
ee_Flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
|
#endif // EEPROM_SETTINGS && (!I2C_EEPROM && !SPI_EEPROM)
|
||||||
#endif // ARDUINO_ARCH_AVR
|
#endif // ARDUINO_ARCH_AVR
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include "../../inc/MarlinConfig.h"
|
#include "../../inc/MarlinConfig.h"
|
||||||
#include "../shared/persistent_store_api.h"
|
#include "../shared/persistent_store_api.h"
|
||||||
|
|
||||||
#if DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
|
#if DISABLED(I2C_EEPROM, SPI_EEPROM)
|
||||||
#define E2END 0xFFF // Default to Flash emulated EEPROM size (EepromEmulation_Due.cpp)
|
#define E2END 0xFFF // Default to Flash emulated EEPROM size (EepromEmulation_Due.cpp)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ extern void eeprom_flush(void);
|
||||||
bool PersistentStore::access_start() { return true; }
|
bool PersistentStore::access_start() { return true; }
|
||||||
|
|
||||||
bool PersistentStore::access_finish() {
|
bool PersistentStore::access_finish() {
|
||||||
#if DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
|
#if DISABLED(I2C_EEPROM, SPI_EEPROM)
|
||||||
eeprom_flush();
|
eeprom_flush();
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -28,20 +28,20 @@
|
||||||
|
|
||||||
#include "../shared/persistent_store_api.h"
|
#include "../shared/persistent_store_api.h"
|
||||||
|
|
||||||
#if DISABLED(EEPROM_EMULATED_WITH_SRAM) && DISABLED(SPI_EEPROM) && DISABLED(I2C_EEPROM)
|
#if DISABLED(EEPROM_EMULATED_WITH_SRAM, SPI_EEPROM, I2C_EEPROM)
|
||||||
#include <EEPROM.h>
|
#include <EEPROM.h>
|
||||||
static bool eeprom_data_written = false;
|
static bool eeprom_data_written = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool PersistentStore::access_start() {
|
bool PersistentStore::access_start() {
|
||||||
#if DISABLED(EEPROM_EMULATED_WITH_SRAM) && DISABLED(SPI_EEPROM) && DISABLED(I2C_EEPROM)
|
#if DISABLED(EEPROM_EMULATED_WITH_SRAM, SPI_EEPROM, I2C_EEPROM)
|
||||||
eeprom_buffer_fill();
|
eeprom_buffer_fill();
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PersistentStore::access_finish() {
|
bool PersistentStore::access_finish() {
|
||||||
#if DISABLED(EEPROM_EMULATED_WITH_SRAM) && DISABLED(SPI_EEPROM) && DISABLED(I2C_EEPROM)
|
#if DISABLED(EEPROM_EMULATED_WITH_SRAM, SPI_EEPROM, I2C_EEPROM)
|
||||||
if (eeprom_data_written) {
|
if (eeprom_data_written) {
|
||||||
eeprom_buffer_flush();
|
eeprom_buffer_flush();
|
||||||
eeprom_data_written = false;
|
eeprom_data_written = false;
|
||||||
|
@ -76,7 +76,7 @@ bool PersistentStore::write_data(int &pos, const uint8_t *value, size_t size, ui
|
||||||
pos++;
|
pos++;
|
||||||
value++;
|
value++;
|
||||||
};
|
};
|
||||||
#if DISABLED(EEPROM_EMULATED_WITH_SRAM) && DISABLED(SPI_EEPROM) && DISABLED(I2C_EEPROM)
|
#if DISABLED(EEPROM_EMULATED_WITH_SRAM, SPI_EEPROM, I2C_EEPROM)
|
||||||
eeprom_data_written = true;
|
eeprom_data_written = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include "../../inc/MarlinConfig.h"
|
#include "../../inc/MarlinConfig.h"
|
||||||
|
|
||||||
#if ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
|
#if ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM, SPI_EEPROM)
|
||||||
|
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
// Includes
|
// Includes
|
||||||
|
@ -138,5 +138,5 @@ void eeprom_update_block(const void *__src, void *__dst, size_t __n) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // ENABLED(EEPROM_SETTINGS) && DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
|
#endif // EEPROM_SETTINGS && (!I2C_EEPROM && !SPI_EEPROM)
|
||||||
#endif // STM32GENERIC && STM32F4
|
#endif // STM32GENERIC && STM32F4
|
||||||
|
|
|
@ -67,7 +67,7 @@ void GcodeSuite::M125() {
|
||||||
// Lift Z axis
|
// Lift Z axis
|
||||||
if (parser.seenval('Z')) park_point.z = parser.linearval('Z');
|
if (parser.seenval('Z')) park_point.z = parser.linearval('Z');
|
||||||
|
|
||||||
#if HAS_HOTEND_OFFSET && DISABLED(DUAL_X_CARRIAGE) && DISABLED(DELTA)
|
#if HAS_HOTEND_OFFSET && DISABLED(DUAL_X_CARRIAGE, DELTA)
|
||||||
park_point.x += hotend_offset[X_AXIS][active_extruder];
|
park_point.x += hotend_offset[X_AXIS][active_extruder];
|
||||||
park_point.y += hotend_offset[Y_AXIS][active_extruder];
|
park_point.y += hotend_offset[Y_AXIS][active_extruder];
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -109,7 +109,7 @@ void GcodeSuite::M600() {
|
||||||
if (parser.seenval('X')) park_point.x = parser.linearval('X');
|
if (parser.seenval('X')) park_point.x = parser.linearval('X');
|
||||||
if (parser.seenval('Y')) park_point.y = parser.linearval('Y');
|
if (parser.seenval('Y')) park_point.y = parser.linearval('Y');
|
||||||
|
|
||||||
#if HAS_HOTEND_OFFSET && DISABLED(DUAL_X_CARRIAGE) && DISABLED(DELTA)
|
#if HAS_HOTEND_OFFSET && DISABLED(DUAL_X_CARRIAGE, DELTA)
|
||||||
park_point.x += hotend_offset[X_AXIS][active_extruder];
|
park_point.x += hotend_offset[X_AXIS][active_extruder];
|
||||||
park_point.y += hotend_offset[Y_AXIS][active_extruder];
|
park_point.y += hotend_offset[Y_AXIS][active_extruder];
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -438,7 +438,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
#if ENABLED(MIN_SOFTWARE_ENDSTOPS) && DISABLED(MIN_SOFTWARE_ENDSTOP_Z)
|
#if ENABLED(MIN_SOFTWARE_ENDSTOPS) && DISABLED(MIN_SOFTWARE_ENDSTOP_Z)
|
||||||
#if IS_KINEMATIC
|
#if IS_KINEMATIC
|
||||||
#error "MIN_SOFTWARE_ENDSTOPS on DELTA/SCARA also requires MIN_SOFTWARE_ENDSTOP_Z."
|
#error "MIN_SOFTWARE_ENDSTOPS on DELTA/SCARA also requires MIN_SOFTWARE_ENDSTOP_Z."
|
||||||
#elif DISABLED(MIN_SOFTWARE_ENDSTOP_X) && DISABLED(MIN_SOFTWARE_ENDSTOP_Y)
|
#elif DISABLED(MIN_SOFTWARE_ENDSTOP_X, MIN_SOFTWARE_ENDSTOP_Y)
|
||||||
#error "MIN_SOFTWARE_ENDSTOPS requires at least one of the MIN_SOFTWARE_ENDSTOP_[XYZ] options."
|
#error "MIN_SOFTWARE_ENDSTOPS requires at least one of the MIN_SOFTWARE_ENDSTOP_[XYZ] options."
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -446,7 +446,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
#if ENABLED(MAX_SOFTWARE_ENDSTOPS) && DISABLED(MAX_SOFTWARE_ENDSTOP_Z)
|
#if ENABLED(MAX_SOFTWARE_ENDSTOPS) && DISABLED(MAX_SOFTWARE_ENDSTOP_Z)
|
||||||
#if IS_KINEMATIC
|
#if IS_KINEMATIC
|
||||||
#error "MAX_SOFTWARE_ENDSTOPS on DELTA/SCARA also requires MAX_SOFTWARE_ENDSTOP_Z."
|
#error "MAX_SOFTWARE_ENDSTOPS on DELTA/SCARA also requires MAX_SOFTWARE_ENDSTOP_Z."
|
||||||
#elif DISABLED(MAX_SOFTWARE_ENDSTOP_X) && DISABLED(MAX_SOFTWARE_ENDSTOP_Y)
|
#elif DISABLED(MAX_SOFTWARE_ENDSTOP_X, MAX_SOFTWARE_ENDSTOP_Y)
|
||||||
#error "MAX_SOFTWARE_ENDSTOPS requires at least one of the MAX_SOFTWARE_ENDSTOP_[XYZ] options."
|
#error "MAX_SOFTWARE_ENDSTOPS requires at least one of the MAX_SOFTWARE_ENDSTOP_[XYZ] options."
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -495,7 +495,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
* Progress Bar
|
* Progress Bar
|
||||||
*/
|
*/
|
||||||
#if ENABLED(LCD_PROGRESS_BAR)
|
#if ENABLED(LCD_PROGRESS_BAR)
|
||||||
#if DISABLED(SDSUPPORT) && DISABLED(LCD_SET_PROGRESS_MANUALLY)
|
#if DISABLED(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY)
|
||||||
#error "LCD_PROGRESS_BAR requires SDSUPPORT or LCD_SET_PROGRESS_MANUALLY."
|
#error "LCD_PROGRESS_BAR requires SDSUPPORT or LCD_SET_PROGRESS_MANUALLY."
|
||||||
#elif !HAS_CHARACTER_LCD
|
#elif !HAS_CHARACTER_LCD
|
||||||
#error "LCD_PROGRESS_BAR requires a character LCD."
|
#error "LCD_PROGRESS_BAR requires a character LCD."
|
||||||
|
@ -603,7 +603,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
#error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 4 requires FIL_RUNOUT5_PIN."
|
#error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 4 requires FIL_RUNOUT5_PIN."
|
||||||
#elif NUM_RUNOUT_SENSORS > 5 && !PIN_EXISTS(FIL_RUNOUT6)
|
#elif NUM_RUNOUT_SENSORS > 5 && !PIN_EXISTS(FIL_RUNOUT6)
|
||||||
#error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 5 requires FIL_RUNOUT6_PIN."
|
#error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 5 requires FIL_RUNOUT6_PIN."
|
||||||
#elif DISABLED(SDSUPPORT) && DISABLED(PRINTJOB_TIMER_AUTOSTART)
|
#elif DISABLED(SDSUPPORT, PRINTJOB_TIMER_AUTOSTART)
|
||||||
#error "FILAMENT_RUNOUT_SENSOR requires SDSUPPORT or PRINTJOB_TIMER_AUTOSTART."
|
#error "FILAMENT_RUNOUT_SENSOR requires SDSUPPORT or PRINTJOB_TIMER_AUTOSTART."
|
||||||
#elif DISABLED(ADVANCED_PAUSE_FEATURE)
|
#elif DISABLED(ADVANCED_PAUSE_FEATURE)
|
||||||
static_assert(NULL == strstr(FILAMENT_RUNOUT_SCRIPT, "M600"), "ADVANCED_PAUSE_FEATURE is required to use M600 with FILAMENT_RUNOUT_SENSOR.");
|
static_assert(NULL == strstr(FILAMENT_RUNOUT_SCRIPT, "M600"), "ADVANCED_PAUSE_FEATURE is required to use M600 with FILAMENT_RUNOUT_SENSOR.");
|
||||||
|
@ -618,7 +618,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
#error "ADVANCED_PAUSE_FEATURE currently requires an LCD controller or EMERGENCY_PARSER."
|
#error "ADVANCED_PAUSE_FEATURE currently requires an LCD controller or EMERGENCY_PARSER."
|
||||||
#elif ENABLED(EXTRUDER_RUNOUT_PREVENT)
|
#elif ENABLED(EXTRUDER_RUNOUT_PREVENT)
|
||||||
#error "EXTRUDER_RUNOUT_PREVENT is incompatible with ADVANCED_PAUSE_FEATURE."
|
#error "EXTRUDER_RUNOUT_PREVENT is incompatible with ADVANCED_PAUSE_FEATURE."
|
||||||
#elif ENABLED(PARK_HEAD_ON_PAUSE) && DISABLED(SDSUPPORT) && DISABLED(NEWPANEL) && DISABLED(EMERGENCY_PARSER)
|
#elif ENABLED(PARK_HEAD_ON_PAUSE) && DISABLED(SDSUPPORT, NEWPANEL, EMERGENCY_PARSER)
|
||||||
#error "PARK_HEAD_ON_PAUSE requires SDSUPPORT, EMERGENCY_PARSER, or an LCD controller."
|
#error "PARK_HEAD_ON_PAUSE requires SDSUPPORT, EMERGENCY_PARSER, or an LCD controller."
|
||||||
#elif ENABLED(HOME_BEFORE_FILAMENT_CHANGE) && DISABLED(PAUSE_PARK_NO_STEPPER_TIMEOUT)
|
#elif ENABLED(HOME_BEFORE_FILAMENT_CHANGE) && DISABLED(PAUSE_PARK_NO_STEPPER_TIMEOUT)
|
||||||
#error "HOME_BEFORE_FILAMENT_CHANGE requires PAUSE_PARK_NO_STEPPER_TIMEOUT."
|
#error "HOME_BEFORE_FILAMENT_CHANGE requires PAUSE_PARK_NO_STEPPER_TIMEOUT."
|
||||||
|
@ -935,7 +935,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
* Delta requirements
|
* Delta requirements
|
||||||
*/
|
*/
|
||||||
#if ENABLED(DELTA)
|
#if ENABLED(DELTA)
|
||||||
#if DISABLED(USE_XMAX_PLUG) && DISABLED(USE_YMAX_PLUG) && DISABLED(USE_ZMAX_PLUG)
|
#if DISABLED(USE_XMAX_PLUG, USE_YMAX_PLUG, USE_ZMAX_PLUG)
|
||||||
#error "You probably want to use Max Endstops for DELTA!"
|
#error "You probably want to use Max Endstops for DELTA!"
|
||||||
#elif ENABLED(ENABLE_LEVELING_FADE_HEIGHT) && DISABLED(AUTO_BED_LEVELING_BILINEAR) && !UBL_SEGMENTED
|
#elif ENABLED(ENABLE_LEVELING_FADE_HEIGHT) && DISABLED(AUTO_BED_LEVELING_BILINEAR) && !UBL_SEGMENTED
|
||||||
#error "ENABLE_LEVELING_FADE_HEIGHT on DELTA requires AUTO_BED_LEVELING_BILINEAR or AUTO_BED_LEVELING_UBL."
|
#error "ENABLE_LEVELING_FADE_HEIGHT on DELTA requires AUTO_BED_LEVELING_BILINEAR or AUTO_BED_LEVELING_UBL."
|
||||||
|
@ -1241,7 +1241,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
/**
|
/**
|
||||||
* ULTIPANEL encoder
|
* ULTIPANEL encoder
|
||||||
*/
|
*/
|
||||||
#if ENABLED(ULTIPANEL) && DISABLED(NEWPANEL) && DISABLED(SR_LCD_2W_NL) && !defined(SHIFT_CLK)
|
#if ENABLED(ULTIPANEL) && DISABLED(NEWPANEL, SR_LCD_2W_NL) && !defined(SHIFT_CLK)
|
||||||
#error "ULTIPANEL requires some kind of encoder."
|
#error "ULTIPANEL requires some kind of encoder."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1253,7 +1253,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
* SAV_3DGLCD display options
|
* SAV_3DGLCD display options
|
||||||
*/
|
*/
|
||||||
#if ENABLED(SAV_3DGLCD)
|
#if ENABLED(SAV_3DGLCD)
|
||||||
#if DISABLED(U8GLIB_SSD1306) && DISABLED(U8GLIB_SH1106)
|
#if DISABLED(U8GLIB_SSD1306, U8GLIB_SH1106)
|
||||||
#error "Enable a SAV_3DGLCD display type: U8GLIB_SSD1306 or U8GLIB_SH1106."
|
#error "Enable a SAV_3DGLCD display type: U8GLIB_SSD1306 or U8GLIB_SH1106."
|
||||||
#elif BOTH(U8GLIB_SSD1306, U8GLIB_SH1106)
|
#elif BOTH(U8GLIB_SSD1306, U8GLIB_SH1106)
|
||||||
#error "Only enable one SAV_3DGLCD display type: U8GLIB_SSD1306 or U8GLIB_SH1106."
|
#error "Only enable one SAV_3DGLCD display type: U8GLIB_SSD1306 or U8GLIB_SH1106."
|
||||||
|
@ -1502,7 +1502,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
* Endstop Tests
|
* Endstop Tests
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _PLUG_UNUSED_TEST(AXIS,PLUG) (DISABLED(USE_##PLUG##MIN_PLUG) && DISABLED(USE_##PLUG##MAX_PLUG) && !(ENABLED(AXIS##_DUAL_ENDSTOPS) && WITHIN(AXIS##2_USE_ENDSTOP, _##PLUG##MAX_, _##PLUG##MIN_)))
|
#define _PLUG_UNUSED_TEST(AXIS,PLUG) (DISABLED(USE_##PLUG##MIN_PLUG, USE_##PLUG##MAX_PLUG) && !(ENABLED(AXIS##_DUAL_ENDSTOPS) && WITHIN(AXIS##2_USE_ENDSTOP, _##PLUG##MAX_, _##PLUG##MIN_)))
|
||||||
#define _AXIS_PLUG_UNUSED_TEST(AXIS) (_PLUG_UNUSED_TEST(AXIS,X) && _PLUG_UNUSED_TEST(AXIS,Y) && _PLUG_UNUSED_TEST(AXIS,Z))
|
#define _AXIS_PLUG_UNUSED_TEST(AXIS) (_PLUG_UNUSED_TEST(AXIS,X) && _PLUG_UNUSED_TEST(AXIS,Y) && _PLUG_UNUSED_TEST(AXIS,Z))
|
||||||
|
|
||||||
// At least 3 endstop plugs must be used
|
// At least 3 endstop plugs must be used
|
||||||
|
@ -1758,7 +1758,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
+ ENABLED(G3D_PANEL) \
|
+ ENABLED(G3D_PANEL) \
|
||||||
+ (ENABLED(MINIPANEL) && DISABLED(MKS_MINI_12864)) \
|
+ (ENABLED(MINIPANEL) && DISABLED(MKS_MINI_12864)) \
|
||||||
+ ENABLED(MKS_MINI_12864) \
|
+ ENABLED(MKS_MINI_12864) \
|
||||||
+ (ENABLED(REPRAPWORLD_KEYPAD) && DISABLED(CARTESIO_UI) && DISABLED(ZONESTAR_LCD)) \
|
+ (ENABLED(REPRAPWORLD_KEYPAD) && DISABLED(CARTESIO_UI, ZONESTAR_LCD)) \
|
||||||
+ ENABLED(RIGIDBOT_PANEL) \
|
+ ENABLED(RIGIDBOT_PANEL) \
|
||||||
+ ENABLED(RA_CONTROL_PANEL) \
|
+ ENABLED(RA_CONTROL_PANEL) \
|
||||||
+ ENABLED(LCD_SAINSMART_I2C_1602) \
|
+ ENABLED(LCD_SAINSMART_I2C_1602) \
|
||||||
|
@ -1766,7 +1766,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
+ ENABLED(LCM1602) \
|
+ ENABLED(LCM1602) \
|
||||||
+ ENABLED(LCD_I2C_PANELOLU2) \
|
+ ENABLED(LCD_I2C_PANELOLU2) \
|
||||||
+ ENABLED(LCD_I2C_VIKI) \
|
+ ENABLED(LCD_I2C_VIKI) \
|
||||||
+ (ENABLED(U8GLIB_SSD1306) && DISABLED(OLED_PANEL_TINYBOY2) && DISABLED(MKS_12864OLED_SSD1306)) \
|
+ (ENABLED(U8GLIB_SSD1306) && DISABLED(OLED_PANEL_TINYBOY2, MKS_12864OLED_SSD1306)) \
|
||||||
+ ENABLED(SAV_3DLCD) \
|
+ ENABLED(SAV_3DLCD) \
|
||||||
+ ENABLED(BQ_LCD_SMART_CONTROLLER) \
|
+ ENABLED(BQ_LCD_SMART_CONTROLLER) \
|
||||||
+ ENABLED(SAV_3DGLCD) \
|
+ ENABLED(SAV_3DGLCD) \
|
||||||
|
|
|
@ -111,7 +111,7 @@ static void createChar_P(const char c, const byte * const ptr) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void MarlinUI::set_custom_characters(const HD44780CharSet screen_charset/*=CHARSET_INFO*/) {
|
void MarlinUI::set_custom_characters(const HD44780CharSet screen_charset/*=CHARSET_INFO*/) {
|
||||||
#if DISABLED(LCD_PROGRESS_BAR) && DISABLED(SHOW_BOOTSCREEN)
|
#if DISABLED(LCD_PROGRESS_BAR, SHOW_BOOTSCREEN)
|
||||||
UNUSED(screen_charset);
|
UNUSED(screen_charset);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -515,7 +515,7 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
|
||||||
if (!TEST(axis_homed, axis))
|
if (!TEST(axis_homed, axis))
|
||||||
while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
|
while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
|
||||||
else {
|
else {
|
||||||
#if DISABLED(HOME_AFTER_DEACTIVATE) && DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
|
#if DISABLED(HOME_AFTER_DEACTIVATE, DISABLE_REDUCED_ACCURACY_WARNING)
|
||||||
if (!TEST(axis_known_position, axis))
|
if (!TEST(axis_known_position, axis))
|
||||||
lcd_put_u8str_P(axis == Z_AXIS ? PSTR(" ") : PSTR(" "));
|
lcd_put_u8str_P(axis == Z_AXIS ? PSTR(" ") : PSTR(" "));
|
||||||
else
|
else
|
||||||
|
|
|
@ -243,7 +243,7 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
|
||||||
if (!TEST(axis_homed, axis))
|
if (!TEST(axis_homed, axis))
|
||||||
while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
|
while (const char c = *value++) lcd_put_wchar(c <= '.' ? c : '?');
|
||||||
else {
|
else {
|
||||||
#if DISABLED(HOME_AFTER_DEACTIVATE) && DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
|
#if DISABLED(HOME_AFTER_DEACTIVATE, DISABLE_REDUCED_ACCURACY_WARNING)
|
||||||
if (!TEST(axis_known_position, axis))
|
if (!TEST(axis_known_position, axis))
|
||||||
lcd_put_u8str_P(axis == Z_AXIS ? PSTR(" ") : PSTR(" "));
|
lcd_put_u8str_P(axis == Z_AXIS ? PSTR(" ") : PSTR(" "));
|
||||||
else
|
else
|
||||||
|
|
|
@ -239,7 +239,7 @@ void menu_bed_leveling() {
|
||||||
const bool is_homed = all_axes_known();
|
const bool is_homed = all_axes_known();
|
||||||
|
|
||||||
// Auto Home if not using manual probing
|
// Auto Home if not using manual probing
|
||||||
#if DISABLED(PROBE_MANUALLY) && DISABLED(MESH_BED_LEVELING)
|
#if DISABLED(PROBE_MANUALLY, MESH_BED_LEVELING)
|
||||||
if (!is_homed) MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28"));
|
if (!is_homed) MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
|
#error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DISABLED(IS_RAMPS_SMART) && DISABLED(IS_RAMPS_DUO) && DISABLED(IS_RAMPS4DUE) && DISABLED(TARGET_LPC1768)
|
#if DISABLED(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768)
|
||||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -124,7 +124,7 @@
|
||||||
//
|
//
|
||||||
// Augmentation for auto-assigning RAMPS plugs
|
// Augmentation for auto-assigning RAMPS plugs
|
||||||
//
|
//
|
||||||
#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||||
#if HOTENDS > 1
|
#if HOTENDS > 1
|
||||||
#if TEMP_SENSOR_BED
|
#if TEMP_SENSOR_BED
|
||||||
#define IS_RAMPS_EEB
|
#define IS_RAMPS_EEB
|
||||||
|
|
|
@ -121,7 +121,7 @@
|
||||||
//
|
//
|
||||||
// Augmentation for auto-assigning RAMPS plugs
|
// Augmentation for auto-assigning RAMPS plugs
|
||||||
//
|
//
|
||||||
#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||||
#if HOTENDS > 1
|
#if HOTENDS > 1
|
||||||
#if TEMP_SENSOR_BED
|
#if TEMP_SENSOR_BED
|
||||||
#define IS_RAMPS_EEB
|
#define IS_RAMPS_EEB
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
#error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
|
#error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DISABLED(IS_RAMPS_SMART) && DISABLED(IS_RAMPS_DUO) && DISABLED(IS_RAMPS4DUE) && DISABLED(TARGET_LPC1768)
|
#if DISABLED(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768)
|
||||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||||
#endif
|
#endif
|
||||||
|
@ -148,7 +148,7 @@
|
||||||
//
|
//
|
||||||
// Augmentation for auto-assigning RAMPS plugs
|
// Augmentation for auto-assigning RAMPS plugs
|
||||||
//
|
//
|
||||||
#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||||
#if HOTENDS > 1
|
#if HOTENDS > 1
|
||||||
#if TEMP_SENSOR_BED
|
#if TEMP_SENSOR_BED
|
||||||
#define IS_RAMPS_EEB
|
#define IS_RAMPS_EEB
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
//
|
//
|
||||||
// Augmentation for auto-assigning RAMPS plugs
|
// Augmentation for auto-assigning RAMPS plugs
|
||||||
//
|
//
|
||||||
#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||||
#if HOTENDS > 1
|
#if HOTENDS > 1
|
||||||
#if TEMP_SENSOR_BED
|
#if TEMP_SENSOR_BED
|
||||||
#define IS_RAMPS_EEB
|
#define IS_RAMPS_EEB
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
#undef E0_CS_PIN
|
#undef E0_CS_PIN
|
||||||
#undef E1_CS_PIN
|
#undef E1_CS_PIN
|
||||||
|
|
||||||
#if ENABLED(ULTRA_LCD) && DISABLED(REPRAPWORLD_GRAPHICAL_LCD) && !BOTH(NEWPANEL, PANEL_ONE) && DISABLED(CR10_STOCKDISPLAY)
|
#if ENABLED(ULTRA_LCD, REPRAPWORLD_GRAPHICAL_LCD, CR10_STOCKDISPLAY) && !BOTH(NEWPANEL, PANEL_ONE)
|
||||||
#if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
|
#if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
|
||||||
#undef LCD_PINS_RS
|
#undef LCD_PINS_RS
|
||||||
#define LCD_PINS_RS 42 // 3DYMY boards pin 16 -> 42
|
#define LCD_PINS_RS 42 // 3DYMY boards pin 16 -> 42
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
//
|
//
|
||||||
// Augmentation for auto-assigning RAMPS plugs
|
// Augmentation for auto-assigning RAMPS plugs
|
||||||
//
|
//
|
||||||
#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
#if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||||
#if HOTENDS > 1
|
#if HOTENDS > 1
|
||||||
#if TEMP_SENSOR_BED
|
#if TEMP_SENSOR_BED
|
||||||
#define IS_RAMPS_EEB
|
#define IS_RAMPS_EEB
|
||||||
|
|
|
@ -131,7 +131,7 @@
|
||||||
// Mixing stepper, Switching stepper, or regular stepper
|
// Mixing stepper, Switching stepper, or regular stepper
|
||||||
#define E_NEEDED(N) (ENABLED(MIXING_EXTRUDER) && MIXING_STEPPERS > N) \
|
#define E_NEEDED(N) (ENABLED(MIXING_EXTRUDER) && MIXING_STEPPERS > N) \
|
||||||
|| (ENABLED(SWITCHING_EXTRUDER) && E_STEPPERS > N) \
|
|| (ENABLED(SWITCHING_EXTRUDER) && E_STEPPERS > N) \
|
||||||
|| (DISABLED(SWITCHING_EXTRUDER) && DISABLED(MIXING_EXTRUDER) && EXTRUDERS > N)
|
|| (DISABLED(SWITCHING_EXTRUDER, MIXING_EXTRUDER) && EXTRUDERS > N)
|
||||||
|
|
||||||
#define _E0_CS
|
#define _E0_CS
|
||||||
#define _E0_MS1
|
#define _E0_MS1
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include "../inc/MarlinConfig.h"
|
#include "../inc/MarlinConfig.h"
|
||||||
|
|
||||||
#if ENABLED(SDSUPPORT) && DISABLED(USB_FLASH_DRIVE_SUPPORT) && DISABLED(SDIO_SUPPORT)
|
#if ENABLED(SDSUPPORT) && DISABLED(USB_FLASH_DRIVE_SUPPORT, SDIO_SUPPORT)
|
||||||
|
|
||||||
/* Enable FAST CRC computations - You can trade speed for FLASH space if
|
/* Enable FAST CRC computations - You can trade speed for FLASH space if
|
||||||
* needed by disabling the following define */
|
* needed by disabling the following define */
|
||||||
|
|
Reference in a new issue