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:
@@ -107,7 +107,8 @@ private:
|
||||
#if ENABLED(ANYCUBIC_FILAMENT_RUNOUT_SENSOR)
|
||||
char FilamentTestStatus=false;
|
||||
char FilamentTestLastStatus=false;
|
||||
long FilamentRunoutCounter=0;
|
||||
bool FilamentSetMillis=true;
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user