🎨 Fix/adjust warnings (#24225)

This commit is contained in:
Keith Bennett
2022-05-22 14:32:16 -07:00
committed by Scott Lahteine
parent 3c482a9ba1
commit 8465818754
99 changed files with 177 additions and 122 deletions

View File

@ -182,7 +182,9 @@
#elif ENABLED(ZONESTAR_LCD) // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
#error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. Comment out this line to continue."
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
#error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_DIP.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
#endif
#define LCD_PINS_RS PB9
#define LCD_PINS_ENABLE PB6
@ -224,7 +226,9 @@
#if BOTH(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050)
#error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_BTT_SKR_E3_DIP.h' for details. Comment out this line to continue."
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
#error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_BTT_SKR_E3_DIP.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
#endif
/** FYSETC TFT TFT81050 display pinout
*

View File

@ -150,7 +150,9 @@
* All pins are labeled as printed on DWIN PCB. Connect TX-TX, A-A and so on.
*/
#error "Ender-3 V2 display requires a custom cable, see diagram above this line. Comment out this line to continue."
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
#error "CAUTION! Ender-3 V2 display requires a custom cable. See 'pins_BTT_SKR_MINI_E3_common.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
#endif
#define BEEPER_PIN EXP1_9
#define BTN_EN1 EXP1_3
@ -173,7 +175,9 @@
#elif ENABLED(ZONESTAR_LCD) // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
#error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. Comment out this line to continue."
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
#error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
#endif
#define LCD_PINS_RS PB9
#define LCD_PINS_ENABLE EXP1_9
@ -201,7 +205,9 @@
#if ENABLED(TFTGLCD_PANEL_SPI)
#error "CAUTION! TFTGLCD_PANEL_SPI requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. Comment out this line to continue."
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
#error "CAUTION! TFTGLCD_PANEL_SPI requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
#endif
/**
* TFTGLCD_PANEL_SPI display pinout
@ -238,7 +244,9 @@
#elif ENABLED(FYSETC_MINI_12864_2_1)
#error "CAUTION! FYSETC_MINI_12864_2_1 / MKS_MINI_12864_V3 / BTT_MINI_12864_V1 requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. Comment out this line to continue."
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
#error "CAUTION! FYSETC_MINI_12864_2_1 / MKS_MINI_12864_V3 / BTT_MINI_12864_V1 requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
#endif
/**
* FYSETC_MINI_12864_2_1 / MKS_MINI_12864_V3 / BTT_MINI_12864_V1 display pinout
@ -308,7 +316,9 @@
#if BOTH(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050)
#error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. Comment out this line to continue."
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
#error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
#endif
/**
* FYSETC TFT TFT81050 display pinout

View File

@ -24,7 +24,7 @@
#include "env_validate.h"
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "CCROBOT-ONLINE MEEB_3DP only supports one hotend / E-stepper. Comment out this line to continue."
#error "CCROBOT-ONLINE MEEB_3DP only supports 1 hotend / E stepper."
#endif
// https://github.com/ccrobot-online/MEEB_3DP

View File

@ -29,7 +29,7 @@
#include "env_validate.h"
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "Creality V24S1 only supports one hotend / E-stepper. Comment out this line to continue."
#error "Creality v24S1 only supports 1 hotend / E stepper."
#endif
#if BOTH(BLTOUCH, Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)

View File

@ -28,7 +28,7 @@
#include "env_validate.h"
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "Creality V2.5.S1 only supports one hotend / E-stepper. Comment out this line to continue."
#error "Creality V2.5.S1 only supports 1 hotend / E stepper."
#endif
#define BOARD_INFO_NAME "Creality v2.5.S1"

View File

@ -28,7 +28,7 @@
#include "env_validate.h"
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "Creality V4 only supports one hotend / E-stepper. Comment out this line to continue."
#error "Creality v4 only supports 1 hotend / E stepper."
#endif
#ifndef BOARD_INFO_NAME

View File

@ -28,7 +28,7 @@
#include "env_validate.h"
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "CREALITY supports up to 1 hotends / E-steppers. Comment out this line to continue."
#error "Creality v4.2.10 only supports 1 hotend / E stepper."
#endif
#ifndef BOARD_INFO_NAME

View File

@ -26,7 +26,7 @@
*/
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "Creality v4.5.2 only supports one hotend / E-stepper. Comment out this line to continue."
#error "Creality v4.5.2 only supports 1 hotend / E stepper."
#endif
#define BOARD_INFO_NAME "Creality v4.5.2"

View File

@ -26,7 +26,7 @@
*/
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "Creality v4.5.3 only supports one hotend / E-stepper. Comment out this line to continue."
#error "Creality v4.5.3 only supports 1 hotend / E stepper."
#endif
#define BOARD_INFO_NAME "Creality v4.5.3"

View File

@ -28,7 +28,7 @@
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Eryone Ery32 mini supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "Eryone Ery32 mini supports up to 2 hotends / E steppers."
#endif
#ifndef BOARD_INFO_NAME

View File

@ -32,7 +32,7 @@
#if NOT_TARGET(__STM32F1__, STM32F1xx)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "FLSUN HiSpeedV1 only supports one hotend / E-stepper. Comment out this line to continue."
#error "FLSUN HiSpeedV1 only supports 1 hotend / E stepper."
#endif
#define BOARD_INFO_NAME "FLSun HiSpeedV1"

View File

@ -33,7 +33,7 @@
#include "env_validate.h"
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "JGAurora A5S A1 only supports one hotend / E-stepper. Comment out this line to continue."
#error "JGAurora A5S A1 only supports 1 hotend / E stepper."
#endif
#define BOARD_INFO_NAME "JGAurora A5S A1"

View File

@ -28,7 +28,7 @@
#if NOT_TARGET(__STM32F1__, STM32F1xx)
#error "Oops! Select a STM32F1 board in 'Tools > Board.'"
#elif HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "Longer3D only supports one hotend / E-stepper. Comment out this line to continue."
#error "Longer3D only supports 1 hotend / E stepper."
#endif
#define BOARD_INFO_NAME "Longer3D"

View File

@ -28,7 +28,7 @@
#if NOT_TARGET(STM32F1, STM32F1xx)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 1 || E_STEPPERS > 1
#error "MPX ARM Mini only supports one hotend / E-stepper. Comment out this line to continue."
#error "MPX ARM Mini only supports 1 hotend / E stepper."
#endif
#define BOARD_INFO_NAME "Mingda MPX ARM Mini"

View File

@ -29,7 +29,7 @@
#if NOT_TARGET(STM32F1, STM32F1xx)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2
#error "MKS Robin supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS Robin supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "MKS Robin"

View File

@ -26,7 +26,7 @@
*/
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "MKS Robin E3 only supports one hotend / E-stepper. Comment out this line to continue."
#error "MKS Robin E3 only supports 1 hotend / E stepper."
#endif
#ifndef BOARD_INFO_NAME

View File

@ -26,7 +26,7 @@
*/
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "MKS Robin E3D only supports one hotend / E-stepper. Comment out this line to continue."
#error "MKS Robin E3D only supports 1 hotend / E stepper."
#endif
#ifndef BOARD_INFO_NAME

View File

@ -26,7 +26,7 @@
*/
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "MKS Robin E3D v1.1 only supports one hotend / E-stepper. Comment out this line to continue."
#error "MKS Robin E3D v1.1 only supports 1 hotend / E stepper."
#endif
#ifndef BOARD_INFO_NAME

View File

@ -28,7 +28,7 @@
#include "env_validate.h"
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "MKS Robin E3P only supports one hotend / E-stepper. Comment out this line to continue."
#error "MKS Robin E3P only supports 1 hotend / E stepper."
#elif HAS_FSMC_TFT
#error "MKS Robin E3P doesn't support FSMC-based TFT displays."
#endif

View File

@ -26,7 +26,7 @@
*/
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "MKS Robin E3 v1.1 only supports one hotend / E-stepper. Comment out this line to continue."
#error "MKS Robin E3 v1.1 only supports 1 hotend / E stepper."
#endif
#ifndef BOARD_INFO_NAME

View File

@ -24,7 +24,7 @@
#include "env_validate.h"
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "MKS Robin Lite only supports one hotend / E-stepper. Comment out this line to continue."
#error "MKS Robin Lite only supports 1 hotend / E stepper."
#endif
#ifndef BOARD_INFO_NAME

View File

@ -28,7 +28,7 @@
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "MKS Robin Lite3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS Robin Lite3 supports up to 2 hotends / E steppers."
#endif
#ifndef BOARD_INFO_NAME

View File

@ -28,7 +28,7 @@
#include "env_validate.h"
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "MKS Robin mini only supports one hotend / E-stepper. Comment out this line to continue."
#error "MKS Robin mini only supports 1 hotend / E stepper."
#endif
#define BOARD_INFO_NAME "MKS Robin Mini"

View File

@ -28,7 +28,7 @@
#if NOT_TARGET(__STM32F1__, STM32F1)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2
#error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS Robin nano supports up to 2 hotends / E steppers."
#elif HAS_FSMC_TFT
#error "MKS Robin nano v2 doesn't support FSMC-based TFT displays."
#endif

View File

@ -26,7 +26,7 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS Robin nano boards support up to 2 hotends / E steppers."
#endif
#define BOARD_NO_NATIVE_USB

View File

@ -28,7 +28,7 @@
#include "env_validate.h"
#if HOTENDS > 3 || E_STEPPERS > 3
#error "MKS Robin pro supports up to 3 hotends / E-steppers. Comment out this line to continue."
#error "MKS Robin pro supports up to 3 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "MKS Robin pro"

View File

@ -173,7 +173,9 @@
#if BOTH(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050)
#error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_BTT_SKR_E3_DIP.h' for details. Comment out this line to continue."
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
#error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_PANDA_PI_V29.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
#endif
/** FYSETC TFT TFT81050 display pinout
*

View File

@ -31,7 +31,7 @@
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Trigorilla Pro supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "Trigorilla Pro supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "Trigorilla Pro"