Skip to content

Commit

Permalink
🩹 Conditional include probe.h
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and Andy-Big committed Jul 19, 2023
1 parent d1a7b56 commit 6e16935
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Marlin/src/module/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
#include "../HAL/shared/eeprom_api.h"
#endif

#include "probe.h"
#if HAS_BED_PROBE
#include "probe.h"
#endif

#if HAS_LEVELING
#include "../feature/bedlevel/bedlevel.h"
Expand Down
5 changes: 4 additions & 1 deletion Marlin/src/module/tool_change.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

#include "tool_change.h"

#include "probe.h"
#include "motion.h"
#include "planner.h"
#include "temperature.h"
Expand Down Expand Up @@ -92,6 +91,10 @@
#include "../feature/pause.h"
#endif

#if HAS_BED_PROBE
#include "probe.h"
#endif

#if ENABLED(TOOLCHANGE_FILAMENT_SWAP)
#if TOOLCHANGE_FS_WIPE_RETRACT <= 0
#undef TOOLCHANGE_FS_WIPE_RETRACT
Expand Down

0 comments on commit 6e16935

Please sign in to comment.