|
@@ -217,6 +217,7 @@ class FilamentSensorBase {
|
217
|
217
|
static bool poll_runout_pin(const uint8_t extruder) {
|
218
|
218
|
const uint8_t runout_bits = poll_runout_pins();
|
219
|
219
|
#if NUM_RUNOUT_SENSORS == 1
|
|
220
|
+ UNUSED(extruder);
|
220
|
221
|
return runout_bits; // A single sensor applying to all extruders
|
221
|
222
|
#else
|
222
|
223
|
#if ENABLED(DUAL_X_CARRIAGE)
|
|
@@ -233,7 +234,7 @@ class FilamentSensorBase {
|
233
|
234
|
}
|
234
|
235
|
|
235
|
236
|
public:
|
236
|
|
- static inline void block_completed(const block_t* const b) {}
|
|
237
|
+ static inline void block_completed(const block_t* const b) { UNUSED(b); }
|
237
|
238
|
|
238
|
239
|
static inline void run() {
|
239
|
240
|
const bool out = poll_runout_pin(active_extruder);
|
|
@@ -313,7 +314,7 @@ class FilamentSensorBase {
|
313
|
314
|
static inline void reset() { runout_count = runout_threshold; }
|
314
|
315
|
static inline void run() { runout_count--; }
|
315
|
316
|
static inline bool has_run_out() { return runout_count < 0; }
|
316
|
|
- static inline void block_completed(const block_t* const b) {}
|
|
317
|
+ static inline void block_completed(const block_t* const b) { UNUSED(b); }
|
317
|
318
|
static inline void filament_present(const uint8_t extruder) { runout_count = runout_threshold; UNUSED(extruder); }
|
318
|
319
|
};
|
319
|
320
|
|