Fix to runout sensor code. (#12431)

- "old_state" is no longer a class static variable.
This commit is contained in:
Marcio Teixeira 2018-11-14 15:54:05 -07:00 committed by Scott Lahteine
parent d82c350de7
commit 5e586a6b39

View File

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