Remove invariant code from Configurations
- Add `Conditionals.h` with calculated configuration values - Add `SanityCheck.h` with checks for configuration errors - Remove equivalent code from all configurations - Move error checks from some sources to `SanityCheck.h` also - Fix initialization of count_direction in stepper.cpp
This commit is contained in:
parent
0858fba192
commit
670006b919
30 changed files with 937 additions and 4880 deletions
|
|
@ -1189,10 +1189,6 @@ void lcd_init() {
|
|||
WRITE(SHIFT_OUT,HIGH);
|
||||
WRITE(SHIFT_LD,HIGH);
|
||||
WRITE(SHIFT_EN,LOW);
|
||||
#else
|
||||
#ifdef ULTIPANEL
|
||||
#error ULTIPANEL requires an encoder
|
||||
#endif
|
||||
#endif // SR_LCD_2W_NL
|
||||
#endif//!NEWPANEL
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue