Browse Source

Fix runout debug output

Followup to #12544
Scott Lahteine 5 years ago
parent
commit
cd88ea2106
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      Marlin/src/feature/runout.h

+ 6
- 2
Marlin/src/feature/runout.h View File

186
         old_state = new_state;
186
         old_state = new_state;
187
 
187
 
188
         #ifdef FILAMENT_RUNOUT_SENSOR_DEBUG
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
         #endif
195
         #endif
192
 
196
 
193
         motion_detected |= change;
197
         motion_detected |= change;

Loading…
Cancel
Save