Browse Source

Fix to runout sensor code. (#12431)

- "old_state" is no longer a class static variable.
Marcio Teixeira 6 years ago
parent
commit
5e586a6b39
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      Marlin/src/feature/runout.cpp

+ 1
- 2
Marlin/src/feature/runout.cpp View File

44
 }
44
 }
45
 
45
 
46
 #if ENABLED(FILAMENT_MOTION_SENSOR)
46
 #if ENABLED(FILAMENT_MOTION_SENSOR)
47
-  uint8_t FilamentSensorEncoder::motion_detected,
48
-          FilamentSensorEncoder::old_state; // = 0
47
+  uint8_t FilamentSensorEncoder::motion_detected;
49
 #endif
48
 #endif
50
 
49
 
51
 #if FILAMENT_RUNOUT_DISTANCE_MM > 0
50
 #if FILAMENT_RUNOUT_DISTANCE_MM > 0

Loading…
Cancel
Save