Browse Source

Fix to runout sensor code. (#12431)

- "old_state" is no longer a class static variable.
pull/1/head
Marcio Teixeira 6 years ago
committed by Scott Lahteine
parent
commit
5e586a6b39
  1. 3
      Marlin/src/feature/runout.cpp

3
Marlin/src/feature/runout.cpp

@ -44,8 +44,7 @@ void FilamentSensorBase::filament_present(const uint8_t extruder) {
}
#if ENABLED(FILAMENT_MOTION_SENSOR)
uint8_t FilamentSensorEncoder::motion_detected,
FilamentSensorEncoder::old_state; // = 0
uint8_t FilamentSensorEncoder::motion_detected;
#endif
#if FILAMENT_RUNOUT_DISTANCE_MM > 0

Loading…
Cancel
Save