From 5e586a6b393c9a99c0cfedf720f360687582a00f Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Wed, 14 Nov 2018 15:54:05 -0700 Subject: [PATCH] Fix to runout sensor code. (#12431) - "old_state" is no longer a class static variable. --- Marlin/src/feature/runout.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Marlin/src/feature/runout.cpp b/Marlin/src/feature/runout.cpp index 1a9f56cbe1..3dcb82673c 100644 --- a/Marlin/src/feature/runout.cpp +++ b/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