Prusa MINI Firmware overview
RunoutResponseDebounced Class Reference

#include <runout.h>

Static Public Member Functions

static void reset ()
 
static void run ()
 
static bool has_run_out ()
 
static void block_completed (const block_t *const)
 
static void filament_present (const uint8_t)
 

Member Function Documentation

◆ reset()

static void RunoutResponseDebounced::reset ( )
static
355 { runout_count = runout_threshold; }

◆ run()

static void RunoutResponseDebounced::run ( )
static
356 { if (runout_count >= 0) runout_count--; }

◆ has_run_out()

static bool RunoutResponseDebounced::has_run_out ( )
static
357 { return runout_count < 0; }

◆ block_completed()

static void RunoutResponseDebounced::block_completed ( const block_t * const  )
static
358 { }

◆ filament_present()

static void RunoutResponseDebounced::filament_present ( const uint8_t  )
static
359 { runout_count = runout_threshold; }