Use realtime on filament sensor

Instead of incrementing a variable on every iteration on the filament sensor trigger loop, we now use a real time macro that ensure better repeatability and is easier to customize.
This commit is contained in:
David Ramiro
2019-03-08 16:05:54 +01:00
parent 90e27ff21b
commit cea54723e7
2 changed files with 26 additions and 9 deletions

View File

@@ -107,7 +107,8 @@ private:
#if ENABLED(ANYCUBIC_FILAMENT_RUNOUT_SENSOR)
char FilamentTestStatus=false;
char FilamentTestLastStatus=false;
long FilamentRunoutCounter=0;
bool FilamentSetMillis=true;
#endif
};