Fix to runout sensor code. (#12431)
- "old_state" is no longer a class static variable.
This commit is contained in:
parent
d82c350de7
commit
5e586a6b39
|
@ -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…
Reference in a new issue