Pārlūkot izejas kodu

Fix runout debug output

Followup to #12544
Scott Lahteine 5 gadus atpakaļ
vecāks
revīzija
cd88ea2106
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 6
    2
      Marlin/src/feature/runout.h

+ 6
- 2
Marlin/src/feature/runout.h Parādīt failu

@@ -186,8 +186,12 @@ class FilamentSensorBase {
186 186
         old_state = new_state;
187 187
 
188 188
         #ifdef FILAMENT_RUNOUT_SENSOR_DEBUG
189
-          for (uint8_t e = 0; e < EXTRUDERS; e++)
190
-            if (TEST(change, e)) SERIAL_PROTOCOLLNPAIR("Motion detected T", e);
189
+          if (change) {
190
+            SERIAL_PROTOCOLPGM("Motion detected:");
191
+            for (uint8_t e = 0; e < NUM_RUNOUT_SENSORS; e++)
192
+              if (TEST(change, e)) { SERIAL_CHAR(' '); SERIAL_CHAR('0' + e); }
193
+            SERIAL_EOL();
194
+          }
191 195
         #endif
192 196
 
193 197
         motion_detected |= change;

Notiek ielāde…
Atcelt
Saglabāt