Skip to content
Snippets Groups Projects
Commit 5e586a6b authored by Marcio Teixeira's avatar Marcio Teixeira Committed by Scott Lahteine
Browse files

Fix to runout sensor code. (#12431)

- "old_state" is no longer a class static variable.
parent d82c350d
Branches
Tags
Loading
...@@ -44,8 +44,7 @@ void FilamentSensorBase::filament_present(const uint8_t extruder) { ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment