Hide some compile warnings

This commit is contained in:
Scott Lahteine 2018-11-23 21:07:24 -06:00
parent caca3c8503
commit 29c53f2402
2 changed files with 7 additions and 2 deletions

View file

@ -217,6 +217,7 @@ class FilamentSensorBase {
static bool poll_runout_pin(const uint8_t extruder) { static bool poll_runout_pin(const uint8_t extruder) {
const uint8_t runout_bits = poll_runout_pins(); const uint8_t runout_bits = poll_runout_pins();
#if NUM_RUNOUT_SENSORS == 1 #if NUM_RUNOUT_SENSORS == 1
UNUSED(extruder);
return runout_bits; // A single sensor applying to all extruders return runout_bits; // A single sensor applying to all extruders
#else #else
#if ENABLED(DUAL_X_CARRIAGE) #if ENABLED(DUAL_X_CARRIAGE)
@ -233,7 +234,7 @@ class FilamentSensorBase {
} }
public: public:
static inline void block_completed(const block_t* const b) {} static inline void block_completed(const block_t* const b) { UNUSED(b); }
static inline void run() { static inline void run() {
const bool out = poll_runout_pin(active_extruder); const bool out = poll_runout_pin(active_extruder);
@ -313,7 +314,7 @@ class FilamentSensorBase {
static inline void reset() { runout_count = runout_threshold; } static inline void reset() { runout_count = runout_threshold; }
static inline void run() { runout_count--; } static inline void run() { runout_count--; }
static inline bool has_run_out() { return runout_count < 0; } static inline bool has_run_out() { return runout_count < 0; }
static inline void block_completed(const block_t* const b) {} static inline void block_completed(const block_t* const b) { UNUSED(b); }
static inline void filament_present(const uint8_t extruder) { runout_count = runout_threshold; UNUSED(extruder); } static inline void filament_present(const uint8_t extruder) { runout_count = runout_threshold; UNUSED(extruder); }
}; };

View file

@ -405,6 +405,10 @@ FORCE_INLINE void probe_specific_action(const bool deploy) {
do_blocking_move_to_x(deploy ? Z_PROBE_DEPLOY_X : Z_PROBE_RETRACT_X); do_blocking_move_to_x(deploy ? Z_PROBE_DEPLOY_X : Z_PROBE_RETRACT_X);
#elif DISABLED(PAUSE_BEFORE_DEPLOY_STOW)
UNUSED(deploy);
#endif #endif
} }