Misc build fixes (#21413)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
kpishere 2021-03-24 10:14:11 -04:00 committed by GitHub
parent e7596d92c7
commit fd8207dd9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View file

@ -30,7 +30,8 @@
#define BUG_ON(V...) do { SERIAL_ECHOPAIR(ONLY_FILENAME, __LINE__, ": "); SERIAL_ECHOLNPAIR(V); SERIAL_FLUSHTX(); *(char*)0 = 42; } while(0) #define BUG_ON(V...) do { SERIAL_ECHOPAIR(ONLY_FILENAME, __LINE__, ": "); SERIAL_ECHOLNPAIR(V); SERIAL_FLUSHTX(); *(char*)0 = 42; } while(0)
#elif ENABLED(MARLIN_DEV_MODE) #elif ENABLED(MARLIN_DEV_MODE)
// Don't stop the CPU here, but at least dump the bug on the serial port // Don't stop the CPU here, but at least dump the bug on the serial port
#define BUG_ON(V...) do { SERIAL_ECHOPAIR(ONLY_FILENAME, __LINE__, ": BUG!\n"); SERIAL_ECHOLNPAIR(V); SERIAL_FLUSHTX(); } while(0) //#define BUG_ON(V...) do { SERIAL_ECHOPAIR(ONLY_FILENAME, __LINE__, ": BUG!\n"); SERIAL_ECHOLNPAIR(V); SERIAL_FLUSHTX(); } while(0)
#define BUG_ON(V...) NOOP
#else #else
// Release mode, let's ignore the bug // Release mode, let's ignore the bug
#define BUG_ON(V...) NOOP #define BUG_ON(V...) NOOP

View file

@ -98,7 +98,7 @@ void GcodeSuite::G29() {
// For each G29 S2... // For each G29 S2...
if (mbl_probe_index == 0) { if (mbl_probe_index == 0) {
// Move close to the bed before the first point // Move close to the bed before the first point
do_blocking_move_to_z(0); do_blocking_move_to_z(MANUAL_PROBE_START_Z);
} }
else { else {
// Save Z for the previous mesh position // Save Z for the previous mesh position

View file

@ -45,6 +45,10 @@
* 7 | 11 * 7 | 11
*/ */
#if ENABLED(AZSMZ_12864) && DISABLED(ALLOW_SAM3X8E)
#error "No pins defined for RAMPS with AZSMZ_12864."
#endif
#include "env_validate.h" #include "env_validate.h"
// Custom flags and defines for the build // Custom flags and defines for the build
@ -720,9 +724,6 @@
#elif ENABLED(AZSMZ_12864) #elif ENABLED(AZSMZ_12864)
// Pins only defined for RAMPS_SMART currently // Pins only defined for RAMPS_SMART currently
#if DISABLED(IS_RAMPS_SMART)
#error "No pins defined for RAMPS with AZSMZ_12864."
#endif
#elif IS_TFTGLCD_PANEL #elif IS_TFTGLCD_PANEL